diff options
Diffstat (limited to 'bin/aux')
-rwxr-xr-x | bin/aux | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -6,6 +6,7 @@ usage() { cat <<-'EOF' Usage: aux [FILE...] + aux -i aux -h EOF } @@ -15,6 +16,7 @@ help() { Options: + -i init a new project repository -h, --help show this message FILE specific path to be written @@ -34,6 +36,11 @@ help() { Get only the "tests/assert-shellcheck.sh" file: $ aux tests/assert-shellcheck.sh + + + Start a new project repository in the current directory: + + $ aux -i EOF } @@ -53,8 +60,14 @@ for flag in "$@"; do esac done -while getopts 'h' flag; do +while getopts 'ih' flag; do case "$flag" in + (i) + git init + git commit --allow-empty -m 'Initial empty commit' + touch FIXME + mkdir -p vendor + ;; (h) usage help |