refactor: improve Argcfile.sh (#40)

This commit is contained in:
sigoden
2024-06-08 21:58:44 +08:00
committed by GitHub
parent 213e949fc8
commit 8f3385ca9e
3 changed files with 86 additions and 59 deletions
+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: