aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/aux15
1 files changed, 14 insertions, 1 deletions
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