summaryrefslogtreecommitdiff
path: root/tools.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-12-08 16:57:08 +0300
committerGrail Finder <wohilas@gmail.com>2025-12-08 16:57:08 +0300
commit0911d6e64051b32cd16c20d927c72c74625b99cd (patch)
tree09594fb283cf8d68cbf97bf5c1cf269e55763b59 /tools.go
parente7b542730c76e94b1fe806c3ae3ae262d934d38f (diff)
Enha: switch tts on/off from ctrl+p
Diffstat (limited to 'tools.go')
-rw-r--r--tools.go54
1 files changed, 27 insertions, 27 deletions
diff --git a/tools.go b/tools.go
index 8f2549a..47d0e01 100644
--- a/tools.go
+++ b/tools.go
@@ -772,34 +772,34 @@ func todoDelete(args map[string]string) []byte {
func isCommandAllowed(command string) bool {
allowedCommands := map[string]bool{
- "grep": true,
- "sed": true,
- "awk": true,
- "find": true,
- "cat": true,
- "head": true,
- "tail": true,
- "sort": true,
- "uniq": true,
- "wc": true,
- "ls": true,
- "echo": true,
- "cut": true,
- "tr": true,
- "cp": true,
- "mv": true,
- "rm": true,
- "mkdir": true,
- "rmdir": true,
- "pwd": true,
- "df": true,
- "free": true,
- "ps": true,
- "top": true,
- "du": true,
+ "grep": true,
+ "sed": true,
+ "awk": true,
+ "find": true,
+ "cat": true,
+ "head": true,
+ "tail": true,
+ "sort": true,
+ "uniq": true,
+ "wc": true,
+ "ls": true,
+ "echo": true,
+ "cut": true,
+ "tr": true,
+ "cp": true,
+ "mv": true,
+ "rm": true,
+ "mkdir": true,
+ "rmdir": true,
+ "pwd": true,
+ "df": true,
+ "free": true,
+ "ps": true,
+ "top": true,
+ "du": true,
"whoami": true,
- "date": true,
- "uname": true,
+ "date": true,
+ "uname": true,
}
return allowedCommands[command]
}