diff options
| author | sigoden <sigoden@gmail.com> | 2024-05-18 09:52:20 +0000 |
|---|---|---|
| committer | sigoden <sigoden@gmail.com> | 2024-05-18 09:52:20 +0000 |
| commit | 0e668ab3f22330c0f395dd38240d7079fe813e90 (patch) | |
| tree | 602d981338cc5515527b8fa5cf424067029c99a0 /bin/may_execute_command | |
| parent | 2bcd04ec047519f490350a0bf08e425d6abe7564 (diff) | |
| download | llm-functions-docker-0e668ab3f22330c0f395dd38240d7079fe813e90.tar.gz | |
refactor: add the `may_` prefix to reflect updates in AIChat
Diffstat (limited to 'bin/may_execute_command')
| -rwxr-xr-x | bin/may_execute_command | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/may_execute_command b/bin/may_execute_command new file mode 100755 index 0000000..6e35e3c --- /dev/null +++ b/bin/may_execute_command @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -e + +# @describe Executes a shell command. +# @option --shell-command~ "Shell command to execute, such as `ls -la`" + +main() { + eval $argc_shell_command +} + +eval "$(argc --argc-eval "$0" "$@")" |
