Adding short options

This commit is contained in:
Philippe Caseiro 2022-03-23 13:24:35 +01:00
parent c671927ba8
commit bcc9c6d3c0
1 changed files with 17 additions and 1 deletions

18
badgy
View File

@ -37,4 +37,20 @@ else
exit 2
fi
echo `${1}` 2>/dev/null | jq
case ${1} in
in|clockin|c)
clockin | jq
;;
out|clockout|o)
clockout | jq
;;
val|validate|v)
validate | jq
;;
dev|devalidate|d)
devalidate | jq
;;
*)
echo `${1}` | jq
;;
esac