Change CLI flag to '-lock'
This commit is contained in:
parent
07903189f1
commit
eb8e5ac739
|
@ -47,7 +47,7 @@ func (c *ApplyCommand) Run(args []string) int {
|
|||
cmdFlags.StringVar(&c.Meta.statePath, "state", "", "path")
|
||||
cmdFlags.StringVar(&c.Meta.stateOutPath, "state-out", "", "path")
|
||||
cmdFlags.StringVar(&c.Meta.backupPath, "backup", "", "path")
|
||||
cmdFlags.BoolVar(&c.Meta.stateLock, "state-lock", true, "lock state")
|
||||
cmdFlags.BoolVar(&c.Meta.stateLock, "lock", true, "lock state")
|
||||
cmdFlags.Usage = func() { c.Ui.Error(c.Help()) }
|
||||
if err := cmdFlags.Parse(args); err != nil {
|
||||
return 1
|
||||
|
@ -274,7 +274,7 @@ Options:
|
|||
modifying. Defaults to the "-state-out" path with
|
||||
".backup" extension. Set to "-" to disable backup.
|
||||
|
||||
-lock-state=true Lock the state file when locking is supported.
|
||||
-lock=true Lock the state file when locking is supported.
|
||||
|
||||
-input=true Ask for input for variables if not directly set.
|
||||
|
||||
|
@ -323,7 +323,7 @@ Options:
|
|||
|
||||
-force Don't ask for input for destroy confirmation.
|
||||
|
||||
-lock-state=true Lock the state file when locking is supported.
|
||||
-lock=true Lock the state file when locking is supported.
|
||||
|
||||
-no-color If specified, output won't contain any color.
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ func (c *PlanCommand) Run(args []string) int {
|
|||
&c.Meta.parallelism, "parallelism", DefaultParallelism, "parallelism")
|
||||
cmdFlags.StringVar(&c.Meta.statePath, "state", "", "path")
|
||||
cmdFlags.BoolVar(&detailed, "detailed-exitcode", false, "detailed-exitcode")
|
||||
cmdFlags.BoolVar(&c.Meta.stateLock, "state-lock", true, "lock state")
|
||||
cmdFlags.BoolVar(&c.Meta.stateLock, "lock", true, "lock state")
|
||||
cmdFlags.Usage = func() { c.Ui.Error(c.Help()) }
|
||||
if err := cmdFlags.Parse(args); err != nil {
|
||||
return 1
|
||||
|
@ -143,7 +143,7 @@ Options:
|
|||
|
||||
-input=true Ask for input for variables if not directly set.
|
||||
|
||||
-lock-state=true Lock the state file when locking is supported.
|
||||
-lock=true Lock the state file when locking is supported.
|
||||
|
||||
-module-depth=n Specifies the depth of modules to show in the output.
|
||||
This does not affect the plan itself, only the output
|
||||
|
|
|
@ -23,7 +23,7 @@ func (c *RefreshCommand) Run(args []string) int {
|
|||
cmdFlags.IntVar(&c.Meta.parallelism, "parallelism", 0, "parallelism")
|
||||
cmdFlags.StringVar(&c.Meta.stateOutPath, "state-out", "", "path")
|
||||
cmdFlags.StringVar(&c.Meta.backupPath, "backup", "", "path")
|
||||
cmdFlags.BoolVar(&c.Meta.stateLock, "state-lock", true, "lock state")
|
||||
cmdFlags.BoolVar(&c.Meta.stateLock, "lock", true, "lock state")
|
||||
cmdFlags.Usage = func() { c.Ui.Error(c.Help()) }
|
||||
if err := cmdFlags.Parse(args); err != nil {
|
||||
return 1
|
||||
|
@ -96,7 +96,7 @@ Options:
|
|||
|
||||
-input=true Ask for input for variables if not directly set.
|
||||
|
||||
-lock-state=true Lock the state file when locking is supported.
|
||||
-lock=true Lock the state file when locking is supported.
|
||||
|
||||
-no-color If specified, output won't contain any color.
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ func (c *TaintCommand) Run(args []string) int {
|
|||
cmdFlags.StringVar(&c.Meta.statePath, "state", DefaultStateFilename, "path")
|
||||
cmdFlags.StringVar(&c.Meta.stateOutPath, "state-out", "", "path")
|
||||
cmdFlags.StringVar(&c.Meta.backupPath, "backup", "", "path")
|
||||
cmdFlags.BoolVar(&c.Meta.stateLock, "state-lock", true, "lock state")
|
||||
cmdFlags.BoolVar(&c.Meta.stateLock, "lock", true, "lock state")
|
||||
cmdFlags.Usage = func() { c.Ui.Error(c.Help()) }
|
||||
if err := cmdFlags.Parse(args); err != nil {
|
||||
return 1
|
||||
|
@ -177,7 +177,7 @@ Options:
|
|||
modifying. Defaults to the "-state-out" path with
|
||||
".backup" extension. Set to "-" to disable backup.
|
||||
|
||||
-lock-state=true Lock the state file when locking is supported.
|
||||
-lock=true Lock the state file when locking is supported.
|
||||
|
||||
-module=path The module path where the resource lives. By
|
||||
default this will be root. Child modules can be specified
|
||||
|
|
|
@ -25,7 +25,7 @@ func (c *UntaintCommand) Run(args []string) int {
|
|||
cmdFlags.StringVar(&c.Meta.statePath, "state", DefaultStateFilename, "path")
|
||||
cmdFlags.StringVar(&c.Meta.stateOutPath, "state-out", "", "path")
|
||||
cmdFlags.StringVar(&c.Meta.backupPath, "backup", "", "path")
|
||||
cmdFlags.BoolVar(&c.Meta.stateLock, "state-lock", true, "lock state")
|
||||
cmdFlags.BoolVar(&c.Meta.stateLock, "lock", true, "lock state")
|
||||
cmdFlags.Usage = func() { c.Ui.Error(c.Help()) }
|
||||
if err := cmdFlags.Parse(args); err != nil {
|
||||
return 1
|
||||
|
@ -165,7 +165,7 @@ Options:
|
|||
modifying. Defaults to the "-state-out" path with
|
||||
".backup" extension. Set to "-" to disable backup.
|
||||
|
||||
-lock-state=true Lock the state file when locking is supported.
|
||||
-lock=true Lock the state file when locking is supported.
|
||||
|
||||
-module=path The module path where the resource lives. By
|
||||
default this will be root. Child modules can be specified
|
||||
|
|
Loading…
Reference in New Issue