Add ASCII radness [ci skip]
This commit is contained in:
parent
19498d9494
commit
5c5cbbf20f
57
abra
57
abra
@ -17,6 +17,13 @@ ABRA_APPS_JSON="${ABRA_DIR}/apps.json"
|
||||
DOC="
|
||||
The Co-op Cloud utility belt 🎩🐇
|
||||
|
||||
____ ____ _ _
|
||||
/ ___|___ ___ _ __ / ___| | ___ _ _ __| |
|
||||
| | / _ \ _____ / _ \| '_ \ | | | |/ _ \| | | |/ _' |
|
||||
| |__| (_) |_____| (_) | |_) | | |___| | (_) | |_| | (_| |
|
||||
\____\___/ \___/| .__/ \____|_|\___/ \__,_|\__,_|
|
||||
|_|
|
||||
|
||||
Usage:
|
||||
abra [options] app (list|ls) [--status] [--server=<server>] [--type=<type>]
|
||||
abra [options] app new [--server=<server>] [--domain=<domain>] [--app-name=<app_name>] [--pass] [--secrets] <type>
|
||||
@ -169,15 +176,15 @@ eval "var_$1+=($value)"; else eval "var_$1=$value"; fi; return 0; fi; done
|
||||
return 1; }; stdout() { printf -- "cat <<'EOM'\n%s\nEOM\n" "$1"; }; stderr() {
|
||||
printf -- "cat <<'EOM' >&2\n%s\nEOM\n" "$1"; }; error() {
|
||||
[[ -n $1 ]] && stderr "$1"; stderr "$usage"; _return 1; }; _return() {
|
||||
printf -- "exit %d\n" "$1"; exit "$1"; }; set -e; trimmed_doc=${DOC:1:2445}
|
||||
usage=${DOC:34:1842}; digest=d420c
|
||||
shorts=(-d -C -h -U -e -s -v -n -b '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '')
|
||||
longs=(--debug --skip-check --help --skip-update --env --stack --verbose --no-prompt --branch --status --server --type --domain --app-name --pass --secrets --all --update --force --fast --chaos --volumes --no-tty --user --bump --dev)
|
||||
argcounts=(0 0 0 0 1 1 0 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 1 0 0); node_0(){
|
||||
switch __debug 0; }; node_1(){ switch __skip_check 1; }; node_2(){
|
||||
switch __help 2; }; node_3(){ switch __skip_update 3; }; node_4(){ value __env 4
|
||||
}; node_5(){ value __stack 5; }; node_6(){ switch __verbose 6; }; node_7(){
|
||||
switch __no_prompt 7; }; node_8(){ value __branch 8; }; node_9(){
|
||||
printf -- "exit %d\n" "$1"; exit "$1"; }; set -e; trimmed_doc=${DOC:1:2779}
|
||||
usage=${DOC:368:1842}; digest=7cc59
|
||||
shorts=(-s -U -C -h -d -v -b -n -e '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '')
|
||||
longs=(--stack --skip-update --skip-check --help --debug --verbose --branch --no-prompt --env --status --server --type --domain --app-name --pass --secrets --all --update --force --fast --chaos --volumes --no-tty --user --bump --dev)
|
||||
argcounts=(1 0 0 0 0 0 1 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 1 0 0); node_0(){
|
||||
value __stack 0; }; node_1(){ switch __skip_update 1; }; node_2(){
|
||||
switch __skip_check 2; }; node_3(){ switch __help 3; }; node_4(){
|
||||
switch __debug 4; }; node_5(){ switch __verbose 5; }; node_6(){ value __branch 6
|
||||
}; node_7(){ switch __no_prompt 7; }; node_8(){ value __env 8; }; node_9(){
|
||||
switch __status 9; }; node_10(){ value __server 10; }; node_11(){
|
||||
value __type 11; }; node_12(){ value __domain 12; }; node_13(){
|
||||
value __app_name 13; }; node_14(){ switch __pass 14; }; node_15(){
|
||||
@ -246,9 +253,9 @@ node_154(){ optional 153; }; node_155(){ required 80 78 154; }; node_156(){
|
||||
required 80; }; node_157(){
|
||||
either 86 91 94 100 101 102 103 104 106 107 108 112 114 118 119 124 125 128 129 130 133 135 136 137 139 140 143 144 145 146 147 148 150 151 152 155 156
|
||||
}; node_158(){ required 157; }; cat <<<' docopt_exit() {
|
||||
[[ -n $1 ]] && printf "%s\n" "$1" >&2; printf "%s\n" "${DOC:34:1842}" >&2
|
||||
exit 1; }'; unset var___debug var___skip_check var___help var___skip_update \
|
||||
var___env var___stack var___verbose var___no_prompt var___branch var___status \
|
||||
[[ -n $1 ]] && printf "%s\n" "$1" >&2; printf "%s\n" "${DOC:368:1842}" >&2
|
||||
exit 1; }'; unset var___stack var___skip_update var___skip_check var___help \
|
||||
var___debug var___verbose var___branch var___no_prompt var___env var___status \
|
||||
var___server var___type var___domain var___app_name var___pass var___secrets \
|
||||
var___all var___update var___force var___fast var___chaos var___volumes \
|
||||
var___no_tty var___user var___bump var___dev var__type_ var__app_ \
|
||||
@ -260,10 +267,10 @@ var_cp var_logs var_ps var_restore var_rm var_delete var_run var_rollback \
|
||||
var_secret var_generate var_insert var_undeploy var_volume var_recipe \
|
||||
var_create var_release var_versions var_server var_add var___ var_init \
|
||||
var_apps var_upgrade var_doctor var_help; parse 158 "$@"
|
||||
local prefix=${DOCOPT_PREFIX:-''}; unset "${prefix}__debug" \
|
||||
"${prefix}__skip_check" "${prefix}__help" "${prefix}__skip_update" \
|
||||
"${prefix}__env" "${prefix}__stack" "${prefix}__verbose" \
|
||||
"${prefix}__no_prompt" "${prefix}__branch" "${prefix}__status" \
|
||||
local prefix=${DOCOPT_PREFIX:-''}; unset "${prefix}__stack" \
|
||||
"${prefix}__skip_update" "${prefix}__skip_check" "${prefix}__help" \
|
||||
"${prefix}__debug" "${prefix}__verbose" "${prefix}__branch" \
|
||||
"${prefix}__no_prompt" "${prefix}__env" "${prefix}__status" \
|
||||
"${prefix}__server" "${prefix}__type" "${prefix}__domain" \
|
||||
"${prefix}__app_name" "${prefix}__pass" "${prefix}__secrets" "${prefix}__all" \
|
||||
"${prefix}__update" "${prefix}__force" "${prefix}__fast" "${prefix}__chaos" \
|
||||
@ -282,15 +289,15 @@ local prefix=${DOCOPT_PREFIX:-''}; unset "${prefix}__debug" \
|
||||
"${prefix}recipe" "${prefix}create" "${prefix}release" "${prefix}versions" \
|
||||
"${prefix}server" "${prefix}add" "${prefix}__" "${prefix}init" "${prefix}apps" \
|
||||
"${prefix}upgrade" "${prefix}doctor" "${prefix}help"
|
||||
eval "${prefix}"'__debug=${var___debug:-false}'
|
||||
eval "${prefix}"'__stack=${var___stack:-}'
|
||||
eval "${prefix}"'__skip_update=${var___skip_update:-false}'
|
||||
eval "${prefix}"'__skip_check=${var___skip_check:-false}'
|
||||
eval "${prefix}"'__help=${var___help:-false}'
|
||||
eval "${prefix}"'__skip_update=${var___skip_update:-false}'
|
||||
eval "${prefix}"'__env=${var___env:-}'
|
||||
eval "${prefix}"'__stack=${var___stack:-}'
|
||||
eval "${prefix}"'__debug=${var___debug:-false}'
|
||||
eval "${prefix}"'__verbose=${var___verbose:-false}'
|
||||
eval "${prefix}"'__no_prompt=${var___no_prompt:-false}'
|
||||
eval "${prefix}"'__branch=${var___branch:-}'
|
||||
eval "${prefix}"'__no_prompt=${var___no_prompt:-false}'
|
||||
eval "${prefix}"'__env=${var___env:-}'
|
||||
eval "${prefix}"'__status=${var___status:-false}'
|
||||
eval "${prefix}"'__server=${var___server:-}'
|
||||
eval "${prefix}"'__type=${var___type:-}'
|
||||
@ -358,10 +365,10 @@ eval "${prefix}"'upgrade=${var_upgrade:-false}'
|
||||
eval "${prefix}"'doctor=${var_doctor:-false}'
|
||||
eval "${prefix}"'help=${var_help:-false}'; local docopt_i=1
|
||||
[[ $BASH_VERSION =~ ^4.3 ]] && docopt_i=2; for ((;docopt_i>0;docopt_i--)); do
|
||||
declare -p "${prefix}__debug" "${prefix}__skip_check" "${prefix}__help" \
|
||||
"${prefix}__skip_update" "${prefix}__env" "${prefix}__stack" \
|
||||
"${prefix}__verbose" "${prefix}__no_prompt" "${prefix}__branch" \
|
||||
"${prefix}__status" "${prefix}__server" "${prefix}__type" "${prefix}__domain" \
|
||||
declare -p "${prefix}__stack" "${prefix}__skip_update" "${prefix}__skip_check" \
|
||||
"${prefix}__help" "${prefix}__debug" "${prefix}__verbose" "${prefix}__branch" \
|
||||
"${prefix}__no_prompt" "${prefix}__env" "${prefix}__status" \
|
||||
"${prefix}__server" "${prefix}__type" "${prefix}__domain" \
|
||||
"${prefix}__app_name" "${prefix}__pass" "${prefix}__secrets" "${prefix}__all" \
|
||||
"${prefix}__update" "${prefix}__force" "${prefix}__fast" "${prefix}__chaos" \
|
||||
"${prefix}__volumes" "${prefix}__no_tty" "${prefix}__user" "${prefix}__bump" \
|
||||
|
Reference in New Issue
Block a user