From e2879b606b7bd6914317cb5e1aa413b0752823d3 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 7 Aug 2023 19:52:50 -0300 Subject: bin/aux: Add -i option --- bin/aux | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'bin/aux') diff --git a/bin/aux b/bin/aux index 73c91ca..9de9720 100755 --- a/bin/aux +++ b/bin/aux @@ -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 -- cgit v1.2.3