diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-06 09:28:15 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-06 09:28:15 +0800 |
| commit | 4052bc944eea096d66bbfe23ded12f8d853cb848 (patch) | |
| tree | bda15bffd79203cd919caf44671d202c38f9510c | |
| parent | 7d5b14bca135ce521a48c00e54e2e34c7bb76773 (diff) | |
| download | llm-functions-docker-4052bc944eea096d66bbfe23ded12f8d853cb848.tar.gz | |
refactor: may_execute_command.sh (#19)
| -rw-r--r-- | README.md | 8 | ||||
| -rwxr-xr-x | tools/may_execute_command.sh | 4 |
2 files changed, 6 insertions, 6 deletions
@@ -82,11 +82,11 @@ Create a new bashscript in the [./tools/](./tools/) directory (.e.g. `may_execut #!/usr/bin/env bash set -e -# @describe Executes a shell command. -# @option --command~ Command to execute, such as `ls -la` +# @describe Runs a shell command. +# @option --command! The command to execute. main() { - eval $argc_shell_command + eval "$argc_command" } eval "$(argc --argc-eval "$0" "$@")" @@ -109,7 +109,7 @@ The relationship between comment tags and parameters in function declarations is ### Javascript -Create a new javascript in the [./tools/](./tools/) directory (.e.g. `may_execute_command.js`). +Create a new javascript in the [./tools/](./tools/) directory (.e.g. `may_execute_js_code.js`). ```js exports.declarate = function declarate() { diff --git a/tools/may_execute_command.sh b/tools/may_execute_command.sh index 5aad4a3..6acc021 100755 --- a/tools/may_execute_command.sh +++ b/tools/may_execute_command.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash set -e -# @describe Executes a shell command. -# @option --command! Command to execute, such as `ls -la` +# @describe Runs a shell command. +# @option --command! The command to execute. main() { eval "$argc_command" |
