Enha: switch tts on/off from ctrl+p
This commit is contained in:
54
tools.go
54
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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user