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

* update readme
This commit is contained in:
sigoden authored and GitHub committed 2024-05-21 08:26:47 +08:00
1 parent e6642b5898
commit ef43b22a8e
8 files changed
+266 -183

No files matched your search

+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"