2023-01-17 01:07:40 +11:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-04-25 03:08:54 +10:00
|
|
|
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))
|
|
|
|
|
|
|
|
$*
|