refactor: improve Argcfile.sh (#40)

This commit is contained in:
sigoden authored and GitHub committed 2024-06-08 21:58:44 +08:00
1 parent 213e949fc8
commit 8f3385ca9e
3 files changed
+86 -59

No files matched your search

+2 -3
View File
@@ -1,11 +1,10 @@
#!/usr/bin/env bash
set -e
# @describe Create a boilplate tool scriptfile.
# @describe Create a boilplate tool script
#
# It automatically generate declaration json for `*.py` and `*.js` and generate `@option` tags for `.sh`.
# Examples:
# argc create abc.sh foo bar! baz+ qux*
# argc create test.sh foo bar! baz+ qux*
# ./scripts/create-tool.sh test.py foo bar! baz+ qux*
#
# @flag --force Override the exist tool file
+2
View File
@@ -2,6 +2,8 @@
set -e
# @describe Utils for declarations json file
# @cmd Pretty print declarations
#
# Examples: