mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
Remove unused deprecation flags (#3528)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
This commit is contained in:
@@ -34,9 +34,6 @@ type Apply struct {
|
||||
|
||||
// ShowSensitive is used to display the value of variables marked as sensitive.
|
||||
ShowSensitive bool
|
||||
|
||||
// ModuleDeprecationWarnings is used to control what kind of deprecation warnings are shown.
|
||||
ModuleDeprecationWarnings string
|
||||
}
|
||||
|
||||
// ParseApply processes CLI arguments, returning an Apply value and errors.
|
||||
@@ -54,7 +51,6 @@ func ParseApply(args []string) (*Apply, tfdiags.Diagnostics) {
|
||||
cmdFlags.BoolVar(&apply.AutoApprove, "auto-approve", false, "auto-approve")
|
||||
cmdFlags.BoolVar(&apply.InputEnabled, "input", true, "input")
|
||||
cmdFlags.BoolVar(&apply.ShowSensitive, "show-sensitive", false, "displays sensitive values")
|
||||
cmdFlags.StringVar(&apply.ModuleDeprecationWarnings, "deprecation", "", "control the level of deprecation warnings")
|
||||
|
||||
var json bool
|
||||
cmdFlags.BoolVar(&json, "json", false, "json")
|
||||
|
||||
@@ -37,9 +37,6 @@ type Plan struct {
|
||||
|
||||
// ShowSensitive is used to display the value of variables marked as sensitive.
|
||||
ShowSensitive bool
|
||||
|
||||
// ModuleDeprecationWarnLevel stores the level that will be used for selecting what deprecation warnings to show.
|
||||
ModuleDeprecationWarnLevel string
|
||||
}
|
||||
|
||||
// ParsePlan processes CLI arguments, returning a Plan value and errors.
|
||||
@@ -59,7 +56,6 @@ func ParsePlan(args []string) (*Plan, tfdiags.Diagnostics) {
|
||||
cmdFlags.StringVar(&plan.OutPath, "out", "", "out")
|
||||
cmdFlags.StringVar(&plan.GenerateConfigPath, "generate-config-out", "", "generate-config-out")
|
||||
cmdFlags.BoolVar(&plan.ShowSensitive, "show-sensitive", false, "displays sensitive values")
|
||||
cmdFlags.StringVar(&plan.ModuleDeprecationWarnLevel, "deprecation", "", "control the level of deprecation warnings")
|
||||
|
||||
var json bool
|
||||
cmdFlags.BoolVar(&json, "json", false, "json")
|
||||
|
||||
Reference in New Issue
Block a user