Reinstate --force for the deploy command
Follow up to 07e3678c78
.
Also remove bad docs for commands without `--force` now.
This commit is contained in:
parent
aa717c2323
commit
701784930b
227
abra
227
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]
|
||||
abra [options] app <app> deploy [--update] [--force]
|
||||
abra [options] app <app> check
|
||||
abra [options] app <app> version
|
||||
abra [options] app <app> config
|
||||
@ -160,110 +160,112 @@ 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:2129}
|
||||
usage=${DOC:40:1520}; digest=a0f64
|
||||
shorts=(-h -d -e -U -C -s -n -b -v '' '' '' '' '' '' '' '' '' '' '' '' '')
|
||||
longs=(--help --debug --env --skip-update --skip-check --stack --no-prompt --branch --verbose --status --server --type --domain --app-name --pass --secrets --all --update --volumes --no-tty --user --dev)
|
||||
argcounts=(0 0 1 0 0 1 0 1 0 0 1 1 1 1 0 0 0 0 0 0 1 0); node_0(){
|
||||
switch __help 0; }; node_1(){ switch __debug 1; }; node_2(){ value __env 2; }
|
||||
node_3(){ switch __skip_update 3; }; node_4(){ switch __skip_check 4; }
|
||||
node_5(){ value __stack 5; }; node_6(){ switch __no_prompt 6; }; node_7(){
|
||||
value __branch 7; }; node_8(){ switch __verbose 8; }; node_9(){
|
||||
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(){
|
||||
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 __volumes 18; }; node_19(){
|
||||
switch __no_tty 19; }; node_20(){ value __user 20; }; node_21(){ switch __dev 21
|
||||
}; node_22(){ value _type_ a; }; node_23(){ value _app_ a; }; node_24(){
|
||||
value _service_ a; }; node_25(){ value _src_ a; }; node_26(){ value _dst_ a; }
|
||||
node_27(){ value _backup_file_ a; }; node_28(){ value _args_ a true; }
|
||||
node_29(){ value _secret_ a; }; node_30(){ value _version_ a; }; node_31(){
|
||||
value _cmd_ a; }; node_32(){ value _data_ a; }; node_33(){ value _command_ a; }
|
||||
node_34(){ value _host_ a; }; node_35(){ value _user_ a; }; node_36(){
|
||||
value _port_ a; }; node_37(){ value _provider_ a; }; node_38(){
|
||||
value _subcommands_ a true; }; node_39(){ _command app; }; node_40(){
|
||||
_command list; }; node_41(){ _command ls; }; node_42(){ _command new; }
|
||||
node_43(){ _command backup; }; node_44(){ _command deploy; }; node_45(){
|
||||
_command check; }; node_46(){ _command version; }; node_47(){ _command config; }
|
||||
node_48(){ _command cp; }; node_49(){ _command logs; }; node_50(){ _command ps
|
||||
}; node_51(){ _command restore; }; node_52(){ _command rm; }; node_53(){
|
||||
_command delete; }; node_54(){ _command run; }; node_55(){ _command rollback; }
|
||||
node_56(){ _command secret; }; node_57(){ _command generate; }; node_58(){
|
||||
_command insert; }; node_59(){ _command undeploy; }; node_60(){ _command server
|
||||
}; node_61(){ _command add; }; node_62(){ _command init; }; node_63(){
|
||||
_command apps; }; node_64(){ _command upgrade; }; node_65(){ _command doctor; }
|
||||
node_66(){ _command help; }; node_67(){ optional 0 1 2 3 4 5 6 7 8; }
|
||||
node_68(){ optional 67; }; node_69(){ either 40 41; }; node_70(){ required 69; }
|
||||
node_71(){ optional 9; }; node_72(){ optional 10; }; node_73(){ optional 11; }
|
||||
node_74(){ required 68 39 70 71 72 73; }; node_75(){ optional 12; }; node_76(){
|
||||
optional 13; }; node_77(){ optional 14; }; node_78(){ optional 15; }; node_79(){
|
||||
required 68 39 42 72 75 76 77 78 22; }; node_80(){ either 24 16; }; node_81(){
|
||||
required 80; }; node_82(){ required 68 39 23 43 81; }; node_83(){ optional 17; }
|
||||
node_84(){ required 68 39 23 44 83; }; node_85(){ required 68 39 23 45; }
|
||||
node_86(){ required 68 39 23 46; }; node_87(){ required 68 39 23 47; }
|
||||
node_88(){ required 68 39 23 48 25 26; }; node_89(){ optional 24; }; node_90(){
|
||||
required 68 39 23 49 89; }; node_91(){ required 68 39 23 50; }; node_92(){
|
||||
required 68 39 23 51 81; }; node_93(){ either 52 53; }; node_94(){ required 93
|
||||
}; node_95(){ optional 18; }; node_96(){ required 68 39 23 94 95 78; }
|
||||
node_97(){ optional 27; }; node_98(){ required 68 39 23 51 24 97; }; node_99(){
|
||||
optional 19; }; node_100(){ optional 20; }; node_101(){ oneormore 28; }
|
||||
node_102(){ required 68 39 23 54 99 100 24 101; }; node_103(){
|
||||
required 68 39 23 55 24; }; node_104(){ required 29 30; }; node_105(){
|
||||
either 104 16; }; node_106(){ required 105; }; node_107(){ optional 31; }
|
||||
node_108(){ required 68 39 23 56 57 106 107 77; }; node_109(){
|
||||
required 68 39 23 56 58 29 30 32 77; }; node_110(){ either 29 16; }; node_111(){
|
||||
required 110; }; node_112(){ required 68 39 23 56 94 111 77; }; node_113(){
|
||||
required 68 39 23 59; }; node_114(){ optional 101; }; node_115(){
|
||||
required 68 39 23 33 114; }; node_116(){ optional 35; }; node_117(){ optional 36
|
||||
}; node_118(){ required 68 60 61 34 116 117; }; node_119(){ required 68 60 42 37
|
||||
}; node_120(){ required 68 60 70; }; node_121(){ required 68 60 34 52; }
|
||||
node_122(){ required 68 60 34 62; }; node_123(){ required 68 60 34 63 71; }
|
||||
node_124(){ optional 21; }; node_125(){ required 68 64 124; }; node_126(){
|
||||
required 68 46; }; node_127(){ required 68 65; }; node_128(){ oneormore 38; }
|
||||
node_129(){ optional 128; }; node_130(){ required 68 66 129; }; node_131(){
|
||||
required 68; }; node_132(){
|
||||
either 74 79 82 84 85 86 87 88 90 91 92 96 98 102 103 108 109 112 113 115 118 119 120 121 122 123 125 126 127 130 131
|
||||
}; node_133(){ required 132; }; cat <<<' docopt_exit() {
|
||||
[[ -n $1 ]] && printf "%s\n" "$1" >&2; printf "%s\n" "${DOC:40:1520}" >&2
|
||||
exit 1; }'; unset var___help var___debug var___env var___skip_update \
|
||||
var___skip_check var___stack var___no_prompt var___branch var___verbose \
|
||||
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 \
|
||||
var___status var___server var___type var___domain var___app_name var___pass \
|
||||
var___secrets var___all var___update var___volumes var___no_tty var___user \
|
||||
var___dev var__type_ var__app_ var__service_ var__src_ var__dst_ \
|
||||
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 133 "$@"; local prefix=${DOCOPT_PREFIX:-''}
|
||||
unset "${prefix}__help" "${prefix}__debug" "${prefix}__env" \
|
||||
"${prefix}__skip_update" "${prefix}__skip_check" "${prefix}__stack" \
|
||||
"${prefix}__no_prompt" "${prefix}__branch" "${prefix}__verbose" \
|
||||
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" \
|
||||
"${prefix}__status" "${prefix}__server" "${prefix}__type" "${prefix}__domain" \
|
||||
"${prefix}__app_name" "${prefix}__pass" "${prefix}__secrets" "${prefix}__all" \
|
||||
"${prefix}__update" "${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}"'__help=${var___help:-false}'
|
||||
eval "${prefix}"'__debug=${var___debug:-false}'
|
||||
"${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}"'__skip_check=${var___skip_check:-false}'
|
||||
eval "${prefix}"'__stack=${var___stack:-}'
|
||||
eval "${prefix}"'__no_prompt=${var___no_prompt:-false}'
|
||||
eval "${prefix}"'__branch=${var___branch:-}'
|
||||
eval "${prefix}"'__verbose=${var___verbose:-false}'
|
||||
eval "${prefix}"'__status=${var___status:-false}'
|
||||
eval "${prefix}"'__server=${var___server:-}'
|
||||
eval "${prefix}"'__type=${var___type:-}'
|
||||
@ -273,6 +275,7 @@ eval "${prefix}"'__pass=${var___pass:-false}'
|
||||
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}"'__volumes=${var___volumes:-false}'
|
||||
eval "${prefix}"'__no_tty=${var___no_tty:-false}'
|
||||
eval "${prefix}"'__user=${var___user:-}'
|
||||
@ -320,24 +323,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}__help" "${prefix}__debug" "${prefix}__env" \
|
||||
"${prefix}__skip_update" "${prefix}__skip_check" "${prefix}__stack" \
|
||||
"${prefix}__no_prompt" "${prefix}__branch" "${prefix}__verbose" \
|
||||
declare -p "${prefix}__skip_check" "${prefix}__verbose" "${prefix}__env" \
|
||||
"${prefix}__debug" "${prefix}__branch" "${prefix}__help" \
|
||||
"${prefix}__skip_update" "${prefix}__stack" "${prefix}__no_prompt" \
|
||||
"${prefix}__status" "${prefix}__server" "${prefix}__type" "${prefix}__domain" \
|
||||
"${prefix}__app_name" "${prefix}__pass" "${prefix}__secrets" "${prefix}__all" \
|
||||
"${prefix}__update" "${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}__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")
|
||||
@ -579,6 +583,7 @@ output_version_summary() {
|
||||
|
||||
CONSENT_TO_UPDATE=$abra___update
|
||||
NON_INTERACTIVE=$abra___no_prompt
|
||||
FORCE_DEPLOY=$abra___force
|
||||
|
||||
local -a IS_AN_UPDATE="false"
|
||||
local -a UNABLE_TO_DETECT="false"
|
||||
@ -642,7 +647,10 @@ output_version_summary() {
|
||||
if [[ $IS_AN_UPDATE == "true" ]] && [[ $NON_INTERACTIVE == "false" ]]; then
|
||||
require_consent_for_update
|
||||
else
|
||||
if [[ ! $UNABLE_TO_DETECT == "true" ]] && [[ $NON_INTERACTIVE == "false" ]] && [[ ! $UNDEPLOYED_STATE == "true" ]]; then
|
||||
if [[ $UNABLE_TO_DETECT == "false" ]] && \
|
||||
[[ $NON_INTERACTIVE == "false" ]] && \
|
||||
[[ $UNDEPLOYED_STATE == "false" ]] && \
|
||||
[[ $FORCE_DEPLOY == "false" ]]; then
|
||||
success "Nothing to deploy, you're on latest (use --force to re-deploy anyway)"
|
||||
exit 0
|
||||
fi
|
||||
@ -1164,6 +1172,7 @@ Deploy app <app> to the configured server.
|
||||
|
||||
OPTIONS
|
||||
--update Consent to deploying an updated app version
|
||||
--force Force a deployment regardless of state
|
||||
|
||||
POWERED BY
|
||||
docker stack deploy -c compose.yml <app>"
|
||||
@ -1353,13 +1362,12 @@ sub_app_rm (){
|
||||
}
|
||||
|
||||
help_app_delete (){
|
||||
echo "abra [options] app <app> (rm|delete) [--force]
|
||||
echo "abra [options] app <app> (rm|delete)
|
||||
|
||||
Delete <app> completely (\"hard delete\"). All local configuration,
|
||||
volumes and secrets can be removed with this command.
|
||||
|
||||
OPTIONS
|
||||
--force Live dangerously; skip prompt for confirmation
|
||||
--volumes Delete all storage volumes
|
||||
--secrets Delete all secrets
|
||||
|
||||
@ -1448,14 +1456,13 @@ sub_app_secret_rm(){
|
||||
}
|
||||
|
||||
help_app_secret_delete (){
|
||||
echo "abra [options] app <app> secret (delete|rm) (<secret>|--all) [--pass] [--force]
|
||||
echo "abra [options] app <app> secret (delete|rm) (<secret>|--all) [--pass]
|
||||
|
||||
Remove <app>'s Docker secret <secret>.
|
||||
|
||||
OPTIONS
|
||||
--pass Remove secret(s) from \`pass\` as well
|
||||
--all Delete all secrets for <app>
|
||||
--force Live dangerously; skip prompt for confirmation
|
||||
|
||||
POWERED BY
|
||||
docker secret rm
|
||||
@ -2005,7 +2012,7 @@ 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___dev abra___update abra___no_prompt abra___force
|
||||
|
||||
if ! type tput > /dev/null 2>&1; then
|
||||
tput() {
|
||||
|
Loading…
Reference in New Issue
Block a user