2023-01-17 01:07:40 +11:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
source ./api.sh
|
2023-01-17 01:46:39 +11:00
|
|
|
source ./commands/commands.sh
|
2023-01-17 01:07:40 +11:00
|
|
|
source ./pretty.sh
|
|
|
|
source ./creds.sh
|
2023-01-17 01:46:39 +11:00
|
|
|
source ./utils.sh
|
2023-01-17 01:07:40 +11:00
|
|
|
|
2023-01-17 03:30:28 +11:00
|
|
|
while getopts "a:i:hv" 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;;
|
|
|
|
v) echo 0.1.0; exit;;
|
|
|
|
esac done
|
|
|
|
shift $((OPTIND-1))
|
|
|
|
|
|
|
|
$*
|