[parser] Added init command

This commit is contained in:
ayakael 2018-05-16 00:03:13 -07:00
parent 03438ec426
commit 3d5ceacf0b
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -38,6 +38,14 @@ done
case "${1}" in
init)
shift
cmd_init "${GIT_DIR}" ${@}
EXIT=$?
[[ ${EXIT} -eq 1 ]] && echo "Database file already present"
[[ ${EXIT} -eq 2 ]] && echo "Init had errors"
;;
exclude)
shift
cmd_exclude "${GIT_DIR}" ${@}