feat: rewrite to accept json data from cli args other than env var (#7)

* update readme
This commit is contained in:
sigoden
2024-05-21 08:26:47 +08:00
committed by GitHub
parent e6642b5898
commit ef43b22a8e
8 changed files with 266 additions and 183 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
# @describe Get the current time.
main() {
date
}
eval "$(argc --argc-eval "$0" "$@")"
+1 -1
View File
@@ -2,7 +2,7 @@
set -e
# @describe Executes a shell command.
# @option --command~ Command to execute, such as `ls -la`
# @option --command! Command to execute, such as `ls -la`
main() {
eval "$argc_command"