2e88a21f6996ab199936fc80e974e4ff7f572b9a
- Author
- Håvard Moen <post@haavard.name>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/plugins/terraform/_terraform b/plugins/terraform/_terraform
2index 1d1315a8ace23de7434782432ab8db8097dc09e0..5b36558016d6444a0987e7b287eeb1c2b680a1fb 100644
3--- a/plugins/terraform/_terraform
4+++ b/plugins/terraform/_terraform
5@@ -1,6 +1,6 @@
6 #compdef terraform
7
8-local -a _terraform_cmds
9+local -a _terraform_cmds opt_args
10 _terraform_cmds=(
11 'apply:Builds or changes infrastructure'
12 'console:Interactive console for Terraform interpolations'
13@@ -16,13 +16,21 @@ _terraform_cmds=(
14 'push:Upload this Terraform module to Atlas to run'
15 'refresh:Update local state file against real resources'
16 'show:Inspect Terraform state or plan'
17+ 'state:Advanced state management'
18 'taint:Manually mark a resource for recreation'
19 'untaint:Manually unmark a resource as tainted'
20 'validate:Validates the Terraform files'
21 'version:Prints the Terraform version'
22 'workspace:Workspace management'
23+ '0.12upgrade:Rewrites pre-0.12 module source code for v0.12'
24 )
25
26+__012upgrade() {
27+ _arguments \
28+ '-yes[Skip the initial introduction messages and interactive confirmation. This can be used to run this command in batch from a script.]' \