feat: supports functions in bash/js/python/ruby (#6)

This commit is contained in:
sigoden
2024-05-19 22:43:49 +08:00
committed by GitHub
parent be279dcd32
commit 03c4b69822
15 changed files with 543 additions and 92 deletions
+11
View File
@@ -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" "$@")"