Remove unused deprecation flags (#3528)

Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
This commit is contained in:
Andrei Ciobanu
2025-11-26 16:28:16 +02:00
committed by GitHub
parent 4d1c6c151b
commit 4d16e6f28c
2 changed files with 0 additions and 8 deletions

View File

@@ -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")

View File

@@ -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")