added taint completion
This commit is contained in:
parent
b0abb4ea49
commit
fdfb84df71
|
@ -13,6 +13,7 @@ _terraform_cmds=(
|
||||||
'push:Uploads the the local state to the remote server'
|
'push:Uploads the the local state to the remote server'
|
||||||
'refresh:Update local state file against real resources'
|
'refresh:Update local state file against real resources'
|
||||||
'remote:Configures remote state management'
|
'remote:Configures remote state management'
|
||||||
|
'taint:Manualy forcing a destroy and recreate on the next plan/apply'
|
||||||
'show:Inspect Terraform state or plan'
|
'show:Inspect Terraform state or plan'
|
||||||
'version:Prints the Terraform version'
|
'version:Prints the Terraform version'
|
||||||
)
|
)
|
||||||
|
@ -95,6 +96,16 @@ __refresh() {
|
||||||
'-var-file=[(path) Set variables in the Terraform configuration from a file. If "terraform.tfvars" is present, it will be automatically loaded if this flag is not specified.]'
|
'-var-file=[(path) Set variables in the Terraform configuration from a file. If "terraform.tfvars" is present, it will be automatically loaded if this flag is not specified.]'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__taint() {
|
||||||
|
_arguments \
|
||||||
|
'-allow-missing[If specified, the command will succeed (exit code 0) even if the resource is missing.]' \
|
||||||
|
'-backup=[(path) Path to backup the existing state file before modifying. Defaults to the "-state-out" path with ".backup" extension. Set to "-" to disable backup.]' \
|
||||||
|
'-module=[(path) The module path where the resource lives. By default this will be root. Child modules can be specified by names. Ex. "consul" or "consul.vpc" (nested modules).]' \
|
||||||
|
'-no-color[If specified, output will not contain any color.]' \
|
||||||
|
'-state=[(path) Path to read and save state (unless state-out is specified). Defaults to "terraform.tfstate".]' \
|
||||||
|
'-state-out=[(path) Path to write updated state file. By default, the "-state" path will be used.]'
|
||||||
|
}
|
||||||
|
|
||||||
__remote() {
|
__remote() {
|
||||||
_arguments \
|
_arguments \
|
||||||
'-address=[(url) URL of the remote storage server. Required for HTTP backend, optional for Atlas and Consul.]' \
|
'-address=[(url) URL of the remote storage server. Required for HTTP backend, optional for Atlas and Consul.]' \
|
||||||
|
@ -145,4 +156,6 @@ case "$words[1]" in
|
||||||
__remote ;;
|
__remote ;;
|
||||||
show)
|
show)
|
||||||
__show ;;
|
__show ;;
|
||||||
|
taint)
|
||||||
|
__taint ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue