Add --skip-version-check option to app ... deploy
This commit is contained in:
parent
4a0889138f
commit
df4e5045be
239
abra
239
abra
@ -18,7 +18,7 @@ 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>
|
||||
abra [options] app <app> backup (<service>|--all)
|
||||
abra [options] app <app> deploy [--update] [--force]
|
||||
abra [options] app <app> deploy [--update] [--force] [--skip-version-check]
|
||||
abra [options] app <app> check
|
||||
abra [options] app <app> version
|
||||
abra [options] app <app> config
|
||||
@ -160,112 +160,114 @@ 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:2139}
|
||||
usage=${DOC:40:1530}; digest=c02c2
|
||||
shorts=(-C -v -e -d -b -h -U -s -n '' '' '' '' '' '' '' '' '' '' '' '' '' '')
|
||||
longs=(--skip-check --verbose --env --debug --branch --help --skip-update --stack --no-prompt --status --server --type --domain --app-name --pass --secrets --all --update --force --volumes --no-tty --user --dev)
|
||||
argcounts=(0 0 1 0 1 0 0 1 0 0 1 1 1 1 0 0 0 0 0 0 0 1 0); node_0(){
|
||||
switch __skip_check 0; }; node_1(){ switch __verbose 1; }; node_2(){
|
||||
value __env 2; }; node_3(){ switch __debug 3; }; node_4(){ value __branch 4; }
|
||||
node_5(){ switch __help 5; }; node_6(){ switch __skip_update 6; }; node_7(){
|
||||
value __stack 7; }; node_8(){ switch __no_prompt 8; }; node_9(){
|
||||
printf -- "exit %d\n" "$1"; exit "$1"; }; set -e; trimmed_doc=${DOC:1:2162}
|
||||
usage=${DOC:40:1553}; digest=b3855
|
||||
shorts=(-n -b -s -v -h -C -U -d -e '' '' '' '' '' '' '' '' '' '' '' '' '' '' '')
|
||||
longs=(--no-prompt --branch --stack --verbose --help --skip-check --skip-update --debug --env --status --server --type --domain --app-name --pass --secrets --all --update --force --skip-version-check --volumes --no-tty --user --dev)
|
||||
argcounts=(0 1 1 0 0 0 0 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 1 0); node_0(){
|
||||
switch __no_prompt 0; }; node_1(){ value __branch 1; }; node_2(){
|
||||
value __stack 2; }; node_3(){ switch __verbose 3; }; node_4(){ switch __help 4
|
||||
}; node_5(){ switch __skip_check 5; }; node_6(){ switch __skip_update 6; }
|
||||
node_7(){ switch __debug 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(){
|
||||
switch __secrets 15; }; node_16(){ switch __all 16; }; node_17(){
|
||||
switch __update 17; }; node_18(){ switch __force 18; }; node_19(){
|
||||
switch __volumes 19; }; node_20(){ switch __no_tty 20; }; node_21(){
|
||||
value __user 21; }; node_22(){ switch __dev 22; }; node_23(){ value _type_ a; }
|
||||
node_24(){ value _app_ a; }; node_25(){ value _service_ a; }; node_26(){
|
||||
value _src_ a; }; node_27(){ value _dst_ a; }; node_28(){ value _backup_file_ a
|
||||
}; node_29(){ value _args_ a true; }; node_30(){ value _secret_ a; }; node_31(){
|
||||
value _version_ a; }; node_32(){ value _cmd_ a; }; node_33(){ value _data_ a; }
|
||||
node_34(){ value _command_ a; }; node_35(){ value _host_ a; }; node_36(){
|
||||
value _user_ a; }; node_37(){ value _port_ a; }; node_38(){ value _provider_ a
|
||||
}; node_39(){ value _subcommands_ a true; }; node_40(){ _command app; }
|
||||
node_41(){ _command list; }; node_42(){ _command ls; }; node_43(){ _command new
|
||||
}; node_44(){ _command backup; }; node_45(){ _command deploy; }; node_46(){
|
||||
_command check; }; node_47(){ _command version; }; node_48(){ _command config; }
|
||||
node_49(){ _command cp; }; node_50(){ _command logs; }; node_51(){ _command ps
|
||||
}; node_52(){ _command restore; }; node_53(){ _command rm; }; node_54(){
|
||||
_command delete; }; node_55(){ _command run; }; node_56(){ _command rollback; }
|
||||
node_57(){ _command secret; }; node_58(){ _command generate; }; node_59(){
|
||||
_command insert; }; node_60(){ _command undeploy; }; node_61(){ _command server
|
||||
}; node_62(){ _command add; }; node_63(){ _command init; }; node_64(){
|
||||
_command apps; }; node_65(){ _command upgrade; }; node_66(){ _command doctor; }
|
||||
node_67(){ _command help; }; node_68(){ optional 0 1 2 3 4 5 6 7 8; }
|
||||
node_69(){ optional 68; }; node_70(){ either 41 42; }; node_71(){ required 70; }
|
||||
node_72(){ optional 9; }; node_73(){ optional 10; }; node_74(){ optional 11; }
|
||||
node_75(){ required 69 40 71 72 73 74; }; node_76(){ optional 12; }; node_77(){
|
||||
optional 13; }; node_78(){ optional 14; }; node_79(){ optional 15; }; node_80(){
|
||||
required 69 40 43 73 76 77 78 79 23; }; node_81(){ either 25 16; }; node_82(){
|
||||
required 81; }; node_83(){ required 69 40 24 44 82; }; node_84(){ optional 17; }
|
||||
node_85(){ optional 18; }; node_86(){ required 69 40 24 45 84 85; }; node_87(){
|
||||
required 69 40 24 46; }; node_88(){ required 69 40 24 47; }; node_89(){
|
||||
required 69 40 24 48; }; node_90(){ required 69 40 24 49 26 27; }; node_91(){
|
||||
optional 25; }; node_92(){ required 69 40 24 50 91; }; node_93(){
|
||||
required 69 40 24 51; }; node_94(){ required 69 40 24 52 82; }; node_95(){
|
||||
either 53 54; }; node_96(){ required 95; }; node_97(){ optional 19; }
|
||||
node_98(){ required 69 40 24 96 97 79; }; node_99(){ optional 28; }; node_100(){
|
||||
required 69 40 24 52 25 99; }; node_101(){ optional 20; }; node_102(){
|
||||
optional 21; }; node_103(){ oneormore 29; }; node_104(){
|
||||
required 69 40 24 55 101 102 25 103; }; node_105(){ required 69 40 24 56 25; }
|
||||
node_106(){ required 30 31; }; node_107(){ either 106 16; }; node_108(){
|
||||
required 107; }; node_109(){ optional 32; }; node_110(){
|
||||
required 69 40 24 57 58 108 109 78; }; node_111(){
|
||||
required 69 40 24 57 59 30 31 33 78; }; node_112(){ either 30 16; }; node_113(){
|
||||
required 112; }; node_114(){ required 69 40 24 57 96 113 78; }; node_115(){
|
||||
required 69 40 24 60; }; node_116(){ optional 103; }; node_117(){
|
||||
required 69 40 24 34 116; }; node_118(){ optional 36; }; node_119(){ optional 37
|
||||
}; node_120(){ required 69 61 62 35 118 119; }; node_121(){ required 69 61 43 38
|
||||
}; node_122(){ required 69 61 71; }; node_123(){ required 69 61 35 53; }
|
||||
node_124(){ required 69 61 35 63; }; node_125(){ required 69 61 35 64 72; }
|
||||
node_126(){ optional 22; }; node_127(){ required 69 65 126; }; node_128(){
|
||||
required 69 47; }; node_129(){ required 69 66; }; node_130(){ oneormore 39; }
|
||||
node_131(){ optional 130; }; node_132(){ required 69 67 131; }; node_133(){
|
||||
required 69; }; node_134(){
|
||||
either 75 80 83 86 87 88 89 90 92 93 94 98 100 104 105 110 111 114 115 117 120 121 122 123 124 125 127 128 129 132 133
|
||||
}; node_135(){ required 134; }; cat <<<' docopt_exit() {
|
||||
[[ -n $1 ]] && printf "%s\n" "$1" >&2; printf "%s\n" "${DOC:40:1530}" >&2
|
||||
exit 1; }'; unset var___skip_check var___verbose var___env var___debug \
|
||||
var___branch var___help var___skip_update var___stack var___no_prompt \
|
||||
switch __skip_version_check 19; }; node_20(){ switch __volumes 20; }; node_21(){
|
||||
switch __no_tty 21; }; node_22(){ value __user 22; }; node_23(){ switch __dev 23
|
||||
}; node_24(){ value _type_ a; }; node_25(){ value _app_ a; }; node_26(){
|
||||
value _service_ a; }; node_27(){ value _src_ a; }; node_28(){ value _dst_ a; }
|
||||
node_29(){ value _backup_file_ a; }; node_30(){ value _args_ a true; }
|
||||
node_31(){ value _secret_ a; }; node_32(){ value _version_ a; }; node_33(){
|
||||
value _cmd_ a; }; node_34(){ value _data_ a; }; node_35(){ value _command_ a; }
|
||||
node_36(){ value _host_ a; }; node_37(){ value _user_ a; }; node_38(){
|
||||
value _port_ a; }; node_39(){ value _provider_ a; }; node_40(){
|
||||
value _subcommands_ a true; }; node_41(){ _command app; }; node_42(){
|
||||
_command list; }; node_43(){ _command ls; }; node_44(){ _command new; }
|
||||
node_45(){ _command backup; }; node_46(){ _command deploy; }; node_47(){
|
||||
_command check; }; node_48(){ _command version; }; node_49(){ _command config; }
|
||||
node_50(){ _command cp; }; node_51(){ _command logs; }; node_52(){ _command ps
|
||||
}; node_53(){ _command restore; }; node_54(){ _command rm; }; node_55(){
|
||||
_command delete; }; node_56(){ _command run; }; node_57(){ _command rollback; }
|
||||
node_58(){ _command secret; }; node_59(){ _command generate; }; node_60(){
|
||||
_command insert; }; node_61(){ _command undeploy; }; node_62(){ _command server
|
||||
}; node_63(){ _command add; }; node_64(){ _command init; }; node_65(){
|
||||
_command apps; }; node_66(){ _command upgrade; }; node_67(){ _command doctor; }
|
||||
node_68(){ _command help; }; node_69(){ optional 0 1 2 3 4 5 6 7 8; }
|
||||
node_70(){ optional 69; }; node_71(){ either 42 43; }; node_72(){ required 71; }
|
||||
node_73(){ optional 9; }; node_74(){ optional 10; }; node_75(){ optional 11; }
|
||||
node_76(){ required 70 41 72 73 74 75; }; node_77(){ optional 12; }; node_78(){
|
||||
optional 13; }; node_79(){ optional 14; }; node_80(){ optional 15; }; node_81(){
|
||||
required 70 41 44 74 77 78 79 80 24; }; node_82(){ either 26 16; }; node_83(){
|
||||
required 82; }; node_84(){ required 70 41 25 45 83; }; node_85(){ optional 17; }
|
||||
node_86(){ optional 18; }; node_87(){ optional 19; }; node_88(){
|
||||
required 70 41 25 46 85 86 87; }; node_89(){ required 70 41 25 47; }; node_90(){
|
||||
required 70 41 25 48; }; node_91(){ required 70 41 25 49; }; node_92(){
|
||||
required 70 41 25 50 27 28; }; node_93(){ optional 26; }; node_94(){
|
||||
required 70 41 25 51 93; }; node_95(){ required 70 41 25 52; }; node_96(){
|
||||
required 70 41 25 53 83; }; node_97(){ either 54 55; }; node_98(){ required 97
|
||||
}; node_99(){ optional 20; }; node_100(){ required 70 41 25 98 99 80; }
|
||||
node_101(){ optional 29; }; node_102(){ required 70 41 25 53 26 101; }
|
||||
node_103(){ optional 21; }; node_104(){ optional 22; }; node_105(){ oneormore 30
|
||||
}; node_106(){ required 70 41 25 56 103 104 26 105; }; node_107(){
|
||||
required 70 41 25 57 26; }; node_108(){ required 31 32; }; node_109(){
|
||||
either 108 16; }; node_110(){ required 109; }; node_111(){ optional 33; }
|
||||
node_112(){ required 70 41 25 58 59 110 111 79; }; node_113(){
|
||||
required 70 41 25 58 60 31 32 34 79; }; node_114(){ either 31 16; }; node_115(){
|
||||
required 114; }; node_116(){ required 70 41 25 58 98 115 79; }; node_117(){
|
||||
required 70 41 25 61; }; node_118(){ optional 105; }; node_119(){
|
||||
required 70 41 25 35 118; }; node_120(){ optional 37; }; node_121(){ optional 38
|
||||
}; node_122(){ required 70 62 63 36 120 121; }; node_123(){ required 70 62 44 39
|
||||
}; node_124(){ required 70 62 72; }; node_125(){ required 70 62 36 54; }
|
||||
node_126(){ required 70 62 36 64; }; node_127(){ required 70 62 36 65 73; }
|
||||
node_128(){ optional 23; }; node_129(){ required 70 66 128; }; node_130(){
|
||||
required 70 48; }; node_131(){ required 70 67; }; node_132(){ oneormore 40; }
|
||||
node_133(){ optional 132; }; node_134(){ required 70 68 133; }; node_135(){
|
||||
required 70; }; node_136(){
|
||||
either 76 81 84 88 89 90 91 92 94 95 96 100 102 106 107 112 113 116 117 119 122 123 124 125 126 127 129 130 131 134 135
|
||||
}; node_137(){ required 136; }; cat <<<' docopt_exit() {
|
||||
[[ -n $1 ]] && printf "%s\n" "$1" >&2; printf "%s\n" "${DOC:40:1553}" >&2
|
||||
exit 1; }'; unset var___no_prompt var___branch var___stack var___verbose \
|
||||
var___help var___skip_check var___skip_update var___debug var___env \
|
||||
var___status var___server var___type var___domain var___app_name var___pass \
|
||||
var___secrets var___all var___update var___force var___volumes var___no_tty \
|
||||
var___user var___dev 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__provider_ \
|
||||
var__subcommands_ var_app var_list var_ls var_new var_backup var_deploy \
|
||||
var_check var_version 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_doctor \
|
||||
var_help; parse 135 "$@"; local prefix=${DOCOPT_PREFIX:-''}
|
||||
unset "${prefix}__skip_check" "${prefix}__verbose" "${prefix}__env" \
|
||||
"${prefix}__debug" "${prefix}__branch" "${prefix}__help" \
|
||||
"${prefix}__skip_update" "${prefix}__stack" "${prefix}__no_prompt" \
|
||||
var___secrets var___all var___update var___force var___skip_version_check \
|
||||
var___volumes var___no_tty var___user var___dev 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__provider_ var__subcommands_ var_app var_list var_ls var_new \
|
||||
var_backup var_deploy var_check var_version 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_doctor var_help; parse 137 "$@"; local prefix=${DOCOPT_PREFIX:-''}
|
||||
unset "${prefix}__no_prompt" "${prefix}__branch" "${prefix}__stack" \
|
||||
"${prefix}__verbose" "${prefix}__help" "${prefix}__skip_check" \
|
||||
"${prefix}__skip_update" "${prefix}__debug" "${prefix}__env" \
|
||||
"${prefix}__status" "${prefix}__server" "${prefix}__type" "${prefix}__domain" \
|
||||
"${prefix}__app_name" "${prefix}__pass" "${prefix}__secrets" "${prefix}__all" \
|
||||
"${prefix}__update" "${prefix}__force" "${prefix}__volumes" \
|
||||
"${prefix}__no_tty" "${prefix}__user" "${prefix}__dev" "${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}_provider_" \
|
||||
"${prefix}_subcommands_" "${prefix}app" "${prefix}list" "${prefix}ls" \
|
||||
"${prefix}new" "${prefix}backup" "${prefix}deploy" "${prefix}check" \
|
||||
"${prefix}version" "${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}doctor" \
|
||||
"${prefix}help"; eval "${prefix}"'__skip_check=${var___skip_check:-false}'
|
||||
eval "${prefix}"'__verbose=${var___verbose:-false}'
|
||||
eval "${prefix}"'__env=${var___env:-}'
|
||||
eval "${prefix}"'__debug=${var___debug:-false}'
|
||||
eval "${prefix}"'__branch=${var___branch:-}'
|
||||
eval "${prefix}"'__help=${var___help:-false}'
|
||||
eval "${prefix}"'__skip_update=${var___skip_update:-false}'
|
||||
eval "${prefix}"'__stack=${var___stack:-}'
|
||||
"${prefix}__update" "${prefix}__force" "${prefix}__skip_version_check" \
|
||||
"${prefix}__volumes" "${prefix}__no_tty" "${prefix}__user" "${prefix}__dev" \
|
||||
"${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}_provider_" "${prefix}_subcommands_" "${prefix}app" "${prefix}list" \
|
||||
"${prefix}ls" "${prefix}new" "${prefix}backup" "${prefix}deploy" \
|
||||
"${prefix}check" "${prefix}version" "${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}doctor" "${prefix}help"
|
||||
eval "${prefix}"'__no_prompt=${var___no_prompt:-false}'
|
||||
eval "${prefix}"'__branch=${var___branch:-}'
|
||||
eval "${prefix}"'__stack=${var___stack:-}'
|
||||
eval "${prefix}"'__verbose=${var___verbose:-false}'
|
||||
eval "${prefix}"'__help=${var___help:-false}'
|
||||
eval "${prefix}"'__skip_check=${var___skip_check:-false}'
|
||||
eval "${prefix}"'__skip_update=${var___skip_update:-false}'
|
||||
eval "${prefix}"'__debug=${var___debug:-false}'
|
||||
eval "${prefix}"'__env=${var___env:-}'
|
||||
eval "${prefix}"'__status=${var___status:-false}'
|
||||
eval "${prefix}"'__server=${var___server:-}'
|
||||
eval "${prefix}"'__type=${var___type:-}'
|
||||
@ -276,6 +278,7 @@ eval "${prefix}"'__secrets=${var___secrets:-false}'
|
||||
eval "${prefix}"'__all=${var___all:-false}'
|
||||
eval "${prefix}"'__update=${var___update:-false}'
|
||||
eval "${prefix}"'__force=${var___force:-false}'
|
||||
eval "${prefix}"'__skip_version_check=${var___skip_version_check:-false}'
|
||||
eval "${prefix}"'__volumes=${var___volumes:-false}'
|
||||
eval "${prefix}"'__no_tty=${var___no_tty:-false}'
|
||||
eval "${prefix}"'__user=${var___user:-}'
|
||||
@ -323,25 +326,25 @@ 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}__skip_check" "${prefix}__verbose" "${prefix}__env" \
|
||||
"${prefix}__debug" "${prefix}__branch" "${prefix}__help" \
|
||||
"${prefix}__skip_update" "${prefix}__stack" "${prefix}__no_prompt" \
|
||||
declare -p "${prefix}__no_prompt" "${prefix}__branch" "${prefix}__stack" \
|
||||
"${prefix}__verbose" "${prefix}__help" "${prefix}__skip_check" \
|
||||
"${prefix}__skip_update" "${prefix}__debug" "${prefix}__env" \
|
||||
"${prefix}__status" "${prefix}__server" "${prefix}__type" "${prefix}__domain" \
|
||||
"${prefix}__app_name" "${prefix}__pass" "${prefix}__secrets" "${prefix}__all" \
|
||||
"${prefix}__update" "${prefix}__force" "${prefix}__volumes" \
|
||||
"${prefix}__no_tty" "${prefix}__user" "${prefix}__dev" "${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}_provider_" \
|
||||
"${prefix}_subcommands_" "${prefix}app" "${prefix}list" "${prefix}ls" \
|
||||
"${prefix}new" "${prefix}backup" "${prefix}deploy" "${prefix}check" \
|
||||
"${prefix}version" "${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}doctor" \
|
||||
"${prefix}help"; done; }
|
||||
"${prefix}__update" "${prefix}__force" "${prefix}__skip_version_check" \
|
||||
"${prefix}__volumes" "${prefix}__no_tty" "${prefix}__user" "${prefix}__dev" \
|
||||
"${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}_provider_" "${prefix}_subcommands_" "${prefix}app" "${prefix}list" \
|
||||
"${prefix}ls" "${prefix}new" "${prefix}backup" "${prefix}deploy" \
|
||||
"${prefix}check" "${prefix}version" "${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}doctor" "${prefix}help"; done; }
|
||||
# docopt parser above, complete command for generating this parser is `docopt.sh abra`
|
||||
|
||||
PROGRAM_NAME=$(basename "$0")
|
||||
@ -1183,6 +1186,7 @@ sub_app_deploy (){
|
||||
require_app_latest "$TYPE"
|
||||
|
||||
NON_INTERACTIVE=$abra___no_prompt
|
||||
SKIP_VERSION_CHECK=$abra___skip_version_check
|
||||
|
||||
echo "Deployment overview:"
|
||||
echo " Server: $(tput setaf 4)${SERVER}$(tput sgr0)"
|
||||
@ -1204,7 +1208,9 @@ sub_app_deploy (){
|
||||
|
||||
echo " Stack: $(tput setaf 3)${STACK_NAME}$(tput sgr0)"
|
||||
|
||||
if [ "$SKIP_VERSION_CHECK" = "false" ]; then
|
||||
output_version_summary
|
||||
fi
|
||||
|
||||
if [[ $NON_INTERACTIVE == "false" ]]; then
|
||||
prompt_confirm
|
||||
@ -2012,7 +2018,8 @@ abra() {
|
||||
abra___no_tty abra___app_name abra__subcommands_ abra___skip_update \
|
||||
abra___skip_check abra__backup_file_ abra___verbose abra___debug \
|
||||
abra___help abra___branch abra___volumes abra__provider_ abra___type \
|
||||
abra___dev abra___update abra___no_prompt abra___force
|
||||
abra___dev abra___update abra___no_prompt abra___force \
|
||||
abra___skip_version_check
|
||||
|
||||
if ! type tput > /dev/null 2>&1; then
|
||||
tput() {
|
||||
|
Reference in New Issue
Block a user