Hide behind envvars
This commit is contained in:
parent
5b6a03f548
commit
b1a64a65ca
|
@ -233,9 +233,11 @@ func newPreviewCmd() *cobra.Command {
|
||||||
cmd.PersistentFlags().BoolVar(
|
cmd.PersistentFlags().BoolVar(
|
||||||
&configPath, "config-path", false,
|
&configPath, "config-path", false,
|
||||||
"Config keys contain a path to a property in a map or list to set")
|
"Config keys contain a path to a property in a map or list to set")
|
||||||
cmd.PersistentFlags().StringVar(
|
if hasExperimentalCommands() {
|
||||||
&planFilePath, "save-constaints", "",
|
cmd.PersistentFlags().StringVar(
|
||||||
"Save the operations proposed by the preview to a constraints file at the given path")
|
&planFilePath, "save-constaints", "",
|
||||||
|
"Save the operations proposed by the preview to a constraints file at the given path")
|
||||||
|
}
|
||||||
cmd.Flags().BoolVarP(
|
cmd.Flags().BoolVarP(
|
||||||
&showSecrets, "show-secrets", "", false, "Emit secrets in plaintext in the plan file. Defaults to `false`")
|
&showSecrets, "show-secrets", "", false, "Emit secrets in plaintext in the plan file. Defaults to `false`")
|
||||||
|
|
||||||
|
|
|
@ -522,11 +522,13 @@ func newUpCmd() *cobra.Command {
|
||||||
&yes, "yes", "y", false,
|
&yes, "yes", "y", false,
|
||||||
"Automatically approve and perform the update after previewing it")
|
"Automatically approve and perform the update after previewing it")
|
||||||
|
|
||||||
cmd.PersistentFlags().StringVar(
|
if hasExperimentalCommands() {
|
||||||
&planFilePath, "constraints-file", "",
|
cmd.PersistentFlags().StringVar(
|
||||||
"Path to a constraints file to use for the update. The update will not "+
|
&planFilePath, "constraints-file", "",
|
||||||
"perform operations that exceed its constraints (e.g. replacements instead of updates, or updates instead"+
|
"Path to a constraints file to use for the update. The update will not "+
|
||||||
"of sames).")
|
"perform operations that exceed its constraints (e.g. replacements instead of updates, or updates instead"+
|
||||||
|
"of sames).")
|
||||||
|
}
|
||||||
|
|
||||||
if hasDebugCommands() {
|
if hasDebugCommands() {
|
||||||
cmd.PersistentFlags().StringVar(
|
cmd.PersistentFlags().StringVar(
|
||||||
|
|
Loading…
Reference in a new issue