Revert "Sort commands listing"
This reverts commit 99ab5bf369
.
Woops, they cannot be sorted this way. Ignore me.
This commit is contained in:
parent
dd9c485c66
commit
1c9d7282b2
287
abra
287
abra
@ -13,34 +13,34 @@ DOC="
|
||||
The cooperative cloud utility belt 🎩🐇
|
||||
|
||||
Usage:
|
||||
abra [options]
|
||||
abra [options] app (list|ls) [--status] [--server=<server>]
|
||||
abra [options] app <app> (rm|delete) [--force]
|
||||
abra [options] app <app> <command> [<args>...]
|
||||
abra [options] app new [--server=<server>] [--domain=<domain>] [--app-name=<app_name>] [--pass] [--secrets] <type>
|
||||
abra [options] app <app> backup (<service>|--all)
|
||||
abra [options] app <app> deploy [--update]
|
||||
abra [options] app <app> check
|
||||
abra [options] app <app> config
|
||||
abra [options] app <app> cp <src> <dst>
|
||||
abra [options] app <app> deploy [--update]
|
||||
abra [options] app <app> logs [<service>]
|
||||
abra [options] app <app> ps
|
||||
abra [options] app <app> restore (<service>|--all)
|
||||
abra [options] app <app> (rm|delete) [--force]
|
||||
abra [options] app <app> restore <service> [<backup file>]
|
||||
abra [options] app <app> rollback <service>
|
||||
abra [options] app <app> run [--no-tty] [--user=<user>] <service> <args>...
|
||||
abra [options] app <app> secret (rm|delete) (<secret>|--all) [--pass] [--force]
|
||||
abra [options] app <app> rollback <service>
|
||||
abra [options] app <app> secret generate (<secret> <version>|--all) [<cmd>] [--pass]
|
||||
abra [options] app <app> secret insert <secret> <version> <data> [--pass]
|
||||
abra [options] app <app> secret (rm|delete) (<secret>|--all) [--pass] [--force]
|
||||
abra [options] app <app> undeploy
|
||||
abra [options] app new [--server=<server>] [--domain=<domain>] [--app-name=<app_name>] [--pass] [--secrets] <type>
|
||||
abra [options] help [<subcommands>...]
|
||||
abra [options] server (list|ls)
|
||||
abra [options] server <host> apps [--status]
|
||||
abra [options] server <host> init
|
||||
abra [options] server <host> rm
|
||||
abra [options] app <app> <command> [<args>...]
|
||||
abra [options] server add <host> [<user>] [<port>]
|
||||
abra [options] server (list|ls)
|
||||
abra [options] server <host> rm
|
||||
abra [options] server <host> init
|
||||
abra [options] server <host> apps [--status]
|
||||
abra [options] upgrade
|
||||
abra [options] version
|
||||
abra [options] help [<subcommands>...]
|
||||
abra [options]
|
||||
|
||||
Options:
|
||||
-e, --env=<path> Environment variables to load
|
||||
@ -154,170 +154,167 @@ 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:1857}
|
||||
usage=${DOC:40:1394}; digest=49d5c
|
||||
shorts=(-h -C -d -s -v -e -U '' '' '' '' '' '' '' '' '' '' '')
|
||||
longs=(--help --skip-check --debug --stack --verbose --env --skip-update --status --server --force --all --update --no-tty --user --pass --domain --app-name --secrets)
|
||||
argcounts=(0 0 0 1 0 1 0 0 1 0 0 0 0 1 0 1 1 0); node_0(){ switch __help 0; }
|
||||
node_1(){ switch __skip_check 1; }; node_2(){ switch __debug 2; }; node_3(){
|
||||
value __stack 3; }; node_4(){ switch __verbose 4; }; node_5(){ value __env 5; }
|
||||
node_6(){ switch __skip_update 6; }; node_7(){ switch __status 7; }; node_8(){
|
||||
value __server 8; }; node_9(){ switch __force 9; }; node_10(){ switch __all 10
|
||||
}; node_11(){ switch __update 11; }; node_12(){ switch __no_tty 12; }
|
||||
node_13(){ value __user 13; }; node_14(){ switch __pass 14; }; node_15(){
|
||||
value __domain 15; }; node_16(){ value __app_name 16; }; node_17(){
|
||||
switch __secrets 17; }; node_18(){ value _app_ a; }; node_19(){
|
||||
value _command_ a; }; node_20(){ value _args_ a true; }; node_21(){
|
||||
value _service_ a; }; node_22(){ value _src_ a; }; node_23(){ value _dst_ a; }
|
||||
node_24(){ value _backup_file_ a; }; node_25(){ value _secret_ a; }; node_26(){
|
||||
usage=${DOC:40:1394}; digest=42e85
|
||||
shorts=(-v -U -C -h -e -d -s '' '' '' '' '' '' '' '' '' '' '')
|
||||
longs=(--verbose --skip-update --skip-check --help --env --debug --stack --status --server --domain --app-name --pass --secrets --all --update --force --no-tty --user)
|
||||
argcounts=(0 0 0 0 1 0 1 0 1 1 1 0 0 0 0 0 0 1); node_0(){ switch __verbose 0; }
|
||||
node_1(){ switch __skip_update 1; }; node_2(){ switch __skip_check 2; }
|
||||
node_3(){ switch __help 3; }; node_4(){ value __env 4; }; node_5(){
|
||||
switch __debug 5; }; node_6(){ value __stack 6; }; node_7(){ switch __status 7
|
||||
}; node_8(){ value __server 8; }; node_9(){ value __domain 9; }; node_10(){
|
||||
value __app_name 10; }; node_11(){ switch __pass 11; }; node_12(){
|
||||
switch __secrets 12; }; node_13(){ switch __all 13; }; node_14(){
|
||||
switch __update 14; }; node_15(){ switch __force 15; }; node_16(){
|
||||
switch __no_tty 16; }; node_17(){ value __user 17; }; node_18(){ value _type_ a
|
||||
}; node_19(){ value _app_ a; }; node_20(){ value _service_ a; }; node_21(){
|
||||
value _src_ a; }; node_22(){ value _dst_ a; }; node_23(){ value _backup_file_ a
|
||||
}; node_24(){ value _args_ a true; }; node_25(){ value _secret_ a; }; node_26(){
|
||||
value _version_ a; }; node_27(){ value _cmd_ a; }; node_28(){ value _data_ a; }
|
||||
node_29(){ value _type_ a; }; node_30(){ value _subcommands_ a true; }
|
||||
node_31(){ value _host_ a; }; node_32(){ value _user_ a; }; node_33(){
|
||||
value _port_ a; }; node_34(){ _command app; }; node_35(){ _command list; }
|
||||
node_36(){ _command ls; }; node_37(){ _command rm; }; node_38(){ _command delete
|
||||
}; node_39(){ _command backup; }; node_40(){ _command check; }; node_41(){
|
||||
_command config; }; node_42(){ _command cp; }; node_43(){ _command deploy; }
|
||||
node_44(){ _command logs; }; node_45(){ _command ps; }; node_46(){
|
||||
_command restore; }; node_47(){ _command rollback; }; node_48(){ _command run; }
|
||||
node_49(){ _command secret; }; node_50(){ _command generate; }; node_51(){
|
||||
_command insert; }; node_52(){ _command undeploy; }; node_53(){ _command new; }
|
||||
node_54(){ _command help; }; node_55(){ _command server; }; node_56(){
|
||||
_command apps; }; node_57(){ _command init; }; node_58(){ _command add; }
|
||||
node_59(){ _command upgrade; }; node_60(){ _command version; }; node_61(){
|
||||
optional 0 1 2 3 4 5 6; }; node_62(){ optional 61; }; node_63(){ required 62; }
|
||||
node_64(){ either 35 36; }; node_65(){ required 64; }; node_66(){ optional 7; }
|
||||
node_67(){ optional 8; }; node_68(){ required 62 34 65 66 67; }; node_69(){
|
||||
either 37 38; }; node_70(){ required 69; }; node_71(){ optional 9; }; node_72(){
|
||||
required 62 34 18 70 71; }; node_73(){ oneormore 20; }; node_74(){ optional 73
|
||||
}; node_75(){ required 62 34 18 19 74; }; node_76(){ either 21 10; }; node_77(){
|
||||
required 76; }; node_78(){ required 62 34 18 39 77; }; node_79(){
|
||||
required 62 34 18 40; }; node_80(){ required 62 34 18 41; }; node_81(){
|
||||
required 62 34 18 42 22 23; }; node_82(){ optional 11; }; node_83(){
|
||||
required 62 34 18 43 82; }; node_84(){ optional 21; }; node_85(){
|
||||
required 62 34 18 44 84; }; node_86(){ required 62 34 18 45; }; node_87(){
|
||||
required 62 34 18 46 77; }; node_88(){ optional 24; }; node_89(){
|
||||
required 62 34 18 46 21 88; }; node_90(){ required 62 34 18 47 21; }; node_91(){
|
||||
optional 12; }; node_92(){ optional 13; }; node_93(){
|
||||
required 62 34 18 48 91 92 21 73; }; node_94(){ either 25 10; }; node_95(){
|
||||
required 94; }; node_96(){ optional 14; }; node_97(){
|
||||
required 62 34 18 49 70 95 96 71; }; node_98(){ required 25 26; }; node_99(){
|
||||
either 98 10; }; node_100(){ required 99; }; node_101(){ optional 27; }
|
||||
node_102(){ required 62 34 18 49 50 100 101 96; }; node_103(){
|
||||
required 62 34 18 49 51 25 26 28 96; }; node_104(){ required 62 34 18 52; }
|
||||
node_105(){ optional 15; }; node_106(){ optional 16; }; node_107(){ optional 17
|
||||
}; node_108(){ required 62 34 53 67 105 106 96 107 29; }; node_109(){
|
||||
oneormore 30; }; node_110(){ optional 109; }; node_111(){ required 62 54 110; }
|
||||
node_112(){ required 62 55 65; }; node_113(){ required 62 55 31 56 66; }
|
||||
node_114(){ required 62 55 31 57; }; node_115(){ required 62 55 31 37; }
|
||||
node_116(){ optional 32; }; node_117(){ optional 33; }; node_118(){
|
||||
required 62 55 58 31 116 117; }; node_119(){ required 62 59; }; node_120(){
|
||||
required 62 60; }; node_121(){
|
||||
either 63 68 72 75 78 79 80 81 83 85 86 87 89 90 93 97 102 103 104 108 111 112 113 114 115 118 119 120
|
||||
node_29(){ value _command_ a; }; node_30(){ value _host_ a; }; node_31(){
|
||||
value _user_ a; }; node_32(){ value _port_ a; }; node_33(){
|
||||
value _subcommands_ a true; }; node_34(){ _command app; }; node_35(){
|
||||
_command list; }; node_36(){ _command ls; }; node_37(){ _command new; }
|
||||
node_38(){ _command backup; }; node_39(){ _command deploy; }; node_40(){
|
||||
_command check; }; node_41(){ _command config; }; node_42(){ _command cp; }
|
||||
node_43(){ _command logs; }; node_44(){ _command ps; }; node_45(){
|
||||
_command restore; }; node_46(){ _command rm; }; node_47(){ _command delete; }
|
||||
node_48(){ _command run; }; node_49(){ _command rollback; }; node_50(){
|
||||
_command secret; }; node_51(){ _command generate; }; node_52(){ _command insert
|
||||
}; node_53(){ _command undeploy; }; node_54(){ _command server; }; node_55(){
|
||||
_command add; }; node_56(){ _command init; }; node_57(){ _command apps; }
|
||||
node_58(){ _command upgrade; }; node_59(){ _command version; }; node_60(){
|
||||
_command help; }; node_61(){ optional 0 1 2 3 4 5 6; }; node_62(){ optional 61
|
||||
}; node_63(){ either 35 36; }; node_64(){ required 63; }; node_65(){ optional 7
|
||||
}; node_66(){ optional 8; }; node_67(){ required 62 34 64 65 66; }; node_68(){
|
||||
optional 9; }; node_69(){ optional 10; }; node_70(){ optional 11; }; node_71(){
|
||||
optional 12; }; node_72(){ required 62 34 37 66 68 69 70 71 18; }; node_73(){
|
||||
either 20 13; }; node_74(){ required 73; }; node_75(){ required 62 34 19 38 74
|
||||
}; node_76(){ optional 14; }; node_77(){ required 62 34 19 39 76; }; node_78(){
|
||||
required 62 34 19 40; }; node_79(){ required 62 34 19 41; }; node_80(){
|
||||
required 62 34 19 42 21 22; }; node_81(){ optional 20; }; node_82(){
|
||||
required 62 34 19 43 81; }; node_83(){ required 62 34 19 44; }; node_84(){
|
||||
required 62 34 19 45 74; }; node_85(){ either 46 47; }; node_86(){ required 85
|
||||
}; node_87(){ optional 15; }; node_88(){ required 62 34 19 86 87; }; node_89(){
|
||||
optional 23; }; node_90(){ required 62 34 19 45 20 89; }; node_91(){ optional 16
|
||||
}; node_92(){ optional 17; }; node_93(){ oneormore 24; }; node_94(){
|
||||
required 62 34 19 48 91 92 20 93; }; node_95(){ required 62 34 19 49 20; }
|
||||
node_96(){ required 25 26; }; node_97(){ either 96 13; }; node_98(){ required 97
|
||||
}; node_99(){ optional 27; }; node_100(){ required 62 34 19 50 51 98 99 70; }
|
||||
node_101(){ required 62 34 19 50 52 25 26 28 70; }; node_102(){ either 25 13; }
|
||||
node_103(){ required 102; }; node_104(){ required 62 34 19 50 86 103 70 87; }
|
||||
node_105(){ required 62 34 19 53; }; node_106(){ optional 93; }; node_107(){
|
||||
required 62 34 19 29 106; }; node_108(){ optional 31; }; node_109(){ optional 32
|
||||
}; node_110(){ required 62 54 55 30 108 109; }; node_111(){ required 62 54 64; }
|
||||
node_112(){ required 62 54 30 46; }; node_113(){ required 62 54 30 56; }
|
||||
node_114(){ required 62 54 30 57 65; }; node_115(){ required 62 58; }
|
||||
node_116(){ required 62 59; }; node_117(){ oneormore 33; }; node_118(){
|
||||
optional 117; }; node_119(){ required 62 60 118; }; node_120(){ required 62; }
|
||||
node_121(){
|
||||
either 67 72 75 77 78 79 80 82 83 84 88 90 94 95 100 101 104 105 107 110 111 112 113 114 115 116 119 120
|
||||
}; node_122(){ required 121; }; cat <<<' docopt_exit() {
|
||||
[[ -n $1 ]] && printf "%s\n" "$1" >&2; printf "%s\n" "${DOC:40:1394}" >&2
|
||||
exit 1; }'; unset var___help var___skip_check var___debug var___stack \
|
||||
var___verbose var___env var___skip_update var___status var___server \
|
||||
var___force var___all var___update var___no_tty var___user var___pass \
|
||||
var___domain var___app_name var___secrets var__app_ var__command_ var__args_ \
|
||||
var__service_ var__src_ var__dst_ var__backup_file_ var__secret_ var__version_ \
|
||||
var__cmd_ var__data_ var__type_ var__subcommands_ var__host_ var__user_ \
|
||||
var__port_ var_app var_list var_ls var_rm var_delete var_backup var_check \
|
||||
var_config var_cp var_deploy var_logs var_ps var_restore var_rollback var_run \
|
||||
var_secret var_generate var_insert var_undeploy var_new var_help var_server \
|
||||
var_apps var_init var_add var_upgrade var_version; parse 122 "$@"
|
||||
local prefix=${DOCOPT_PREFIX:-''}; unset "${prefix}__help" \
|
||||
"${prefix}__skip_check" "${prefix}__debug" "${prefix}__stack" \
|
||||
"${prefix}__verbose" "${prefix}__env" "${prefix}__skip_update" \
|
||||
"${prefix}__status" "${prefix}__server" "${prefix}__force" "${prefix}__all" \
|
||||
"${prefix}__update" "${prefix}__no_tty" "${prefix}__user" "${prefix}__pass" \
|
||||
"${prefix}__domain" "${prefix}__app_name" "${prefix}__secrets" \
|
||||
"${prefix}_app_" "${prefix}_command_" "${prefix}_args_" "${prefix}_service_" \
|
||||
"${prefix}_src_" "${prefix}_dst_" "${prefix}_backup_file_" "${prefix}_secret_" \
|
||||
"${prefix}_version_" "${prefix}_cmd_" "${prefix}_data_" "${prefix}_type_" \
|
||||
"${prefix}_subcommands_" "${prefix}_host_" "${prefix}_user_" "${prefix}_port_" \
|
||||
"${prefix}app" "${prefix}list" "${prefix}ls" "${prefix}rm" "${prefix}delete" \
|
||||
"${prefix}backup" "${prefix}check" "${prefix}config" "${prefix}cp" \
|
||||
"${prefix}deploy" "${prefix}logs" "${prefix}ps" "${prefix}restore" \
|
||||
"${prefix}rollback" "${prefix}run" "${prefix}secret" "${prefix}generate" \
|
||||
"${prefix}insert" "${prefix}undeploy" "${prefix}new" "${prefix}help" \
|
||||
"${prefix}server" "${prefix}apps" "${prefix}init" "${prefix}add" \
|
||||
"${prefix}upgrade" "${prefix}version"
|
||||
eval "${prefix}"'__help=${var___help:-false}'
|
||||
exit 1; }'; unset var___verbose var___skip_update var___skip_check var___help \
|
||||
var___env var___debug var___stack var___status var___server var___domain \
|
||||
var___app_name var___pass var___secrets var___all var___update var___force \
|
||||
var___no_tty var___user var__type_ var__app_ var__service_ var__src_ var__dst_ \
|
||||
var__backup_file_ var__args_ var__secret_ var__version_ var__cmd_ var__data_ \
|
||||
var__command_ var__host_ var__user_ var__port_ var__subcommands_ var_app \
|
||||
var_list var_ls var_new var_backup var_deploy var_check var_config 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_server var_add var_init var_apps \
|
||||
var_upgrade var_version var_help; parse 122 "$@"
|
||||
local prefix=${DOCOPT_PREFIX:-''}; unset "${prefix}__verbose" \
|
||||
"${prefix}__skip_update" "${prefix}__skip_check" "${prefix}__help" \
|
||||
"${prefix}__env" "${prefix}__debug" "${prefix}__stack" "${prefix}__status" \
|
||||
"${prefix}__server" "${prefix}__domain" "${prefix}__app_name" \
|
||||
"${prefix}__pass" "${prefix}__secrets" "${prefix}__all" "${prefix}__update" \
|
||||
"${prefix}__force" "${prefix}__no_tty" "${prefix}__user" "${prefix}_type_" \
|
||||
"${prefix}_app_" "${prefix}_service_" "${prefix}_src_" "${prefix}_dst_" \
|
||||
"${prefix}_backup_file_" "${prefix}_args_" "${prefix}_secret_" \
|
||||
"${prefix}_version_" "${prefix}_cmd_" "${prefix}_data_" "${prefix}_command_" \
|
||||
"${prefix}_host_" "${prefix}_user_" "${prefix}_port_" "${prefix}_subcommands_" \
|
||||
"${prefix}app" "${prefix}list" "${prefix}ls" "${prefix}new" "${prefix}backup" \
|
||||
"${prefix}deploy" "${prefix}check" "${prefix}config" "${prefix}cp" \
|
||||
"${prefix}logs" "${prefix}ps" "${prefix}restore" "${prefix}rm" \
|
||||
"${prefix}delete" "${prefix}run" "${prefix}rollback" "${prefix}secret" \
|
||||
"${prefix}generate" "${prefix}insert" "${prefix}undeploy" "${prefix}server" \
|
||||
"${prefix}add" "${prefix}init" "${prefix}apps" "${prefix}upgrade" \
|
||||
"${prefix}version" "${prefix}help"
|
||||
eval "${prefix}"'__verbose=${var___verbose:-false}'
|
||||
eval "${prefix}"'__skip_update=${var___skip_update:-false}'
|
||||
eval "${prefix}"'__skip_check=${var___skip_check:-false}'
|
||||
eval "${prefix}"'__help=${var___help:-false}'
|
||||
eval "${prefix}"'__env=${var___env:-}'
|
||||
eval "${prefix}"'__debug=${var___debug:-false}'
|
||||
eval "${prefix}"'__stack=${var___stack:-}'
|
||||
eval "${prefix}"'__verbose=${var___verbose:-false}'
|
||||
eval "${prefix}"'__env=${var___env:-}'
|
||||
eval "${prefix}"'__skip_update=${var___skip_update:-false}'
|
||||
eval "${prefix}"'__status=${var___status:-false}'
|
||||
eval "${prefix}"'__server=${var___server:-}'
|
||||
eval "${prefix}"'__force=${var___force:-false}'
|
||||
eval "${prefix}"'__all=${var___all:-false}'
|
||||
eval "${prefix}"'__update=${var___update:-false}'
|
||||
eval "${prefix}"'__no_tty=${var___no_tty:-false}'
|
||||
eval "${prefix}"'__user=${var___user:-}'
|
||||
eval "${prefix}"'__pass=${var___pass:-false}'
|
||||
eval "${prefix}"'__domain=${var___domain:-}'
|
||||
eval "${prefix}"'__app_name=${var___app_name:-}'
|
||||
eval "${prefix}"'__pass=${var___pass:-false}'
|
||||
eval "${prefix}"'__secrets=${var___secrets:-false}'
|
||||
eval "${prefix}"'_app_=${var__app_:-}'
|
||||
eval "${prefix}"'_command_=${var__command_:-}'
|
||||
if declare -p var__args_ >/dev/null 2>&1; then
|
||||
eval "${prefix}"'_args_=("${var__args_[@]}")'; else eval "${prefix}"'_args_=()'
|
||||
fi; eval "${prefix}"'_service_=${var__service_:-}'
|
||||
eval "${prefix}"'__all=${var___all:-false}'
|
||||
eval "${prefix}"'__update=${var___update:-false}'
|
||||
eval "${prefix}"'__force=${var___force:-false}'
|
||||
eval "${prefix}"'__no_tty=${var___no_tty:-false}'
|
||||
eval "${prefix}"'__user=${var___user:-}'
|
||||
eval "${prefix}"'_type_=${var__type_:-}'; eval "${prefix}"'_app_=${var__app_:-}'
|
||||
eval "${prefix}"'_service_=${var__service_:-}'
|
||||
eval "${prefix}"'_src_=${var__src_:-}'; eval "${prefix}"'_dst_=${var__dst_:-}'
|
||||
eval "${prefix}"'_backup_file_=${var__backup_file_:-}'
|
||||
eval "${prefix}"'_secret_=${var__secret_:-}'
|
||||
if declare -p var__args_ >/dev/null 2>&1; then
|
||||
eval "${prefix}"'_args_=("${var__args_[@]}")'; else eval "${prefix}"'_args_=()'
|
||||
fi; eval "${prefix}"'_secret_=${var__secret_:-}'
|
||||
eval "${prefix}"'_version_=${var__version_:-}'
|
||||
eval "${prefix}"'_cmd_=${var__cmd_:-}'; eval "${prefix}"'_data_=${var__data_:-}'
|
||||
eval "${prefix}"'_type_=${var__type_:-}'
|
||||
if declare -p var__subcommands_ >/dev/null 2>&1; then
|
||||
eval "${prefix}"'_subcommands_=("${var__subcommands_[@]}")'; else
|
||||
eval "${prefix}"'_subcommands_=()'; fi; eval "${prefix}"'_host_=${var__host_:-}'
|
||||
eval "${prefix}"'_command_=${var__command_:-}'
|
||||
eval "${prefix}"'_host_=${var__host_:-}'
|
||||
eval "${prefix}"'_user_=${var__user_:-}'
|
||||
eval "${prefix}"'_port_=${var__port_:-}'
|
||||
eval "${prefix}"'app=${var_app:-false}'
|
||||
if declare -p var__subcommands_ >/dev/null 2>&1; then
|
||||
eval "${prefix}"'_subcommands_=("${var__subcommands_[@]}")'; else
|
||||
eval "${prefix}"'_subcommands_=()'; fi; eval "${prefix}"'app=${var_app:-false}'
|
||||
eval "${prefix}"'list=${var_list:-false}'; eval "${prefix}"'ls=${var_ls:-false}'
|
||||
eval "${prefix}"'rm=${var_rm:-false}'
|
||||
eval "${prefix}"'delete=${var_delete:-false}'
|
||||
eval "${prefix}"'new=${var_new:-false}'
|
||||
eval "${prefix}"'backup=${var_backup:-false}'
|
||||
eval "${prefix}"'deploy=${var_deploy:-false}'
|
||||
eval "${prefix}"'check=${var_check:-false}'
|
||||
eval "${prefix}"'config=${var_config:-false}'
|
||||
eval "${prefix}"'cp=${var_cp:-false}'
|
||||
eval "${prefix}"'deploy=${var_deploy:-false}'
|
||||
eval "${prefix}"'logs=${var_logs:-false}'; eval "${prefix}"'ps=${var_ps:-false}'
|
||||
eval "${prefix}"'cp=${var_cp:-false}'; eval "${prefix}"'logs=${var_logs:-false}'
|
||||
eval "${prefix}"'ps=${var_ps:-false}'
|
||||
eval "${prefix}"'restore=${var_restore:-false}'
|
||||
eval "${prefix}"'rollback=${var_rollback:-false}'
|
||||
eval "${prefix}"'rm=${var_rm:-false}'
|
||||
eval "${prefix}"'delete=${var_delete:-false}'
|
||||
eval "${prefix}"'run=${var_run:-false}'
|
||||
eval "${prefix}"'rollback=${var_rollback:-false}'
|
||||
eval "${prefix}"'secret=${var_secret:-false}'
|
||||
eval "${prefix}"'generate=${var_generate:-false}'
|
||||
eval "${prefix}"'insert=${var_insert:-false}'
|
||||
eval "${prefix}"'undeploy=${var_undeploy:-false}'
|
||||
eval "${prefix}"'new=${var_new:-false}'
|
||||
eval "${prefix}"'help=${var_help:-false}'
|
||||
eval "${prefix}"'server=${var_server:-false}'
|
||||
eval "${prefix}"'apps=${var_apps:-false}'
|
||||
eval "${prefix}"'init=${var_init:-false}'
|
||||
eval "${prefix}"'add=${var_add:-false}'
|
||||
eval "${prefix}"'init=${var_init:-false}'
|
||||
eval "${prefix}"'apps=${var_apps:-false}'
|
||||
eval "${prefix}"'upgrade=${var_upgrade:-false}'
|
||||
eval "${prefix}"'version=${var_version:-false}'; local docopt_i=1
|
||||
eval "${prefix}"'version=${var_version:-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}__help" "${prefix}__skip_check" "${prefix}__debug" \
|
||||
"${prefix}__stack" "${prefix}__verbose" "${prefix}__env" \
|
||||
"${prefix}__skip_update" "${prefix}__status" "${prefix}__server" \
|
||||
"${prefix}__force" "${prefix}__all" "${prefix}__update" "${prefix}__no_tty" \
|
||||
"${prefix}__user" "${prefix}__pass" "${prefix}__domain" "${prefix}__app_name" \
|
||||
"${prefix}__secrets" "${prefix}_app_" "${prefix}_command_" "${prefix}_args_" \
|
||||
"${prefix}_service_" "${prefix}_src_" "${prefix}_dst_" \
|
||||
"${prefix}_backup_file_" "${prefix}_secret_" "${prefix}_version_" \
|
||||
"${prefix}_cmd_" "${prefix}_data_" "${prefix}_type_" "${prefix}_subcommands_" \
|
||||
"${prefix}_host_" "${prefix}_user_" "${prefix}_port_" "${prefix}app" \
|
||||
"${prefix}list" "${prefix}ls" "${prefix}rm" "${prefix}delete" \
|
||||
"${prefix}backup" "${prefix}check" "${prefix}config" "${prefix}cp" \
|
||||
"${prefix}deploy" "${prefix}logs" "${prefix}ps" "${prefix}restore" \
|
||||
"${prefix}rollback" "${prefix}run" "${prefix}secret" "${prefix}generate" \
|
||||
"${prefix}insert" "${prefix}undeploy" "${prefix}new" "${prefix}help" \
|
||||
"${prefix}server" "${prefix}apps" "${prefix}init" "${prefix}add" \
|
||||
"${prefix}upgrade" "${prefix}version"; done; }
|
||||
declare -p "${prefix}__verbose" "${prefix}__skip_update" \
|
||||
"${prefix}__skip_check" "${prefix}__help" "${prefix}__env" "${prefix}__debug" \
|
||||
"${prefix}__stack" "${prefix}__status" "${prefix}__server" "${prefix}__domain" \
|
||||
"${prefix}__app_name" "${prefix}__pass" "${prefix}__secrets" "${prefix}__all" \
|
||||
"${prefix}__update" "${prefix}__force" "${prefix}__no_tty" "${prefix}__user" \
|
||||
"${prefix}_type_" "${prefix}_app_" "${prefix}_service_" "${prefix}_src_" \
|
||||
"${prefix}_dst_" "${prefix}_backup_file_" "${prefix}_args_" \
|
||||
"${prefix}_secret_" "${prefix}_version_" "${prefix}_cmd_" "${prefix}_data_" \
|
||||
"${prefix}_command_" "${prefix}_host_" "${prefix}_user_" "${prefix}_port_" \
|
||||
"${prefix}_subcommands_" "${prefix}app" "${prefix}list" "${prefix}ls" \
|
||||
"${prefix}new" "${prefix}backup" "${prefix}deploy" "${prefix}check" \
|
||||
"${prefix}config" "${prefix}cp" "${prefix}logs" "${prefix}ps" \
|
||||
"${prefix}restore" "${prefix}rm" "${prefix}delete" "${prefix}run" \
|
||||
"${prefix}rollback" "${prefix}secret" "${prefix}generate" "${prefix}insert" \
|
||||
"${prefix}undeploy" "${prefix}server" "${prefix}add" "${prefix}init" \
|
||||
"${prefix}apps" "${prefix}upgrade" "${prefix}version" "${prefix}help"; done; }
|
||||
# docopt parser above, complete command for generating this parser is `docopt.sh abra`
|
||||
|
||||
PROGRAM_NAME=$(basename "$0")
|
||||
|
Reference in New Issue
Block a user