clemmy/clemmy.sh

20 lines
371 B
Bash
Raw Normal View History

2023-01-17 01:07:40 +11:00
#!/bin/sh
imps=$(dirname $(realpath $0))
source $imps/api.sh
source $imps/commands/commands.sh
source $imps/pretty.sh
source $imps/creds.sh
source $imps/utils.sh
2023-01-17 01:07:40 +11:00
2023-06-02 10:58:31 +10:00
while getopts "a:hi:v" o;do case "${o}" in
2023-01-17 01:07:40 +11:00
a) INSTANCE=${insts[$OPTARG]}; TOKE=${tokes[$OPTARG]};;
2023-01-17 03:30:28 +11:00
i) INSTANCE=$OPTARG;;
2023-01-17 01:07:40 +11:00
h) echo $actions; exit;;
2023-01-17 03:31:35 +11:00
v) echo 0.1.1; exit;;
2023-01-17 01:07:40 +11:00
esac done
shift $((OPTIND-1))
$*