diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-06 08:29:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-06 08:29:00 +0800 |
| commit | bfb7d75fe47ea588495c5be8157a67b1fec67a13 (patch) | |
| tree | b1996472711a1ccae391f1bded61adf3475b89ed /tools/may_execute_command.sh | |
| parent | 005d23030dab2b7708996e779dc78dd5f8ebdb8d (diff) | |
| download | llm-functions-docker-bfb7d75fe47ea588495c5be8157a67b1fec67a13.tar.gz | |
refactor: move tools/$lang/** to tools/** (#17)
Diffstat (limited to 'tools/may_execute_command.sh')
| -rwxr-xr-x | tools/may_execute_command.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/may_execute_command.sh b/tools/may_execute_command.sh new file mode 100755 index 0000000..5aad4a3 --- /dev/null +++ b/tools/may_execute_command.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -e + +# @describe Executes a shell command. +# @option --command! Command to execute, such as `ls -la` + +main() { + eval "$argc_command" +} + +eval "$(argc --argc-eval "$0" "$@")"
\ No newline at end of file |
