Skip to content

Commit e42957e

Browse files
authored
chore: hclfmt hclvalidate validate-inputs as deprecated commands (minor fixes) (#4199)
* feat: strict control for hclvalidate hclfmt validate-inputs commands * fix: tests * fix: tests * fix: deprecated env names * fix: typo * fix: addressed to PR review.
1 parent 5a320e3 commit e42957e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cli/commands/hcl/format/cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func NewFlags(opts *options.TerragruntOptions, prefix flags.Prefix) cli.Flags {
7070
Destination: &opts.HclFromStdin,
7171
Usage: "Format HCL from stdin and print result to stdout.",
7272
},
73-
flags.WithDeprecatedEnvVars(tgPrefix.EnvVars("hclfmt-diff"), terragruntPrefixControl), // `TG_HCLFMT_STDIN`
73+
flags.WithDeprecatedEnvVars(tgPrefix.EnvVars("hclfmt-stdin"), terragruntPrefixControl), // `TG_HCLFMT_STDIN`
7474
flags.WithDeprecatedNames(terragruntPrefix.FlagNames("hclfmt-stdin"), terragruntPrefixControl), // `--terragrunt-hclfmt-stdin`, `TERRAGRUNT_HCLFMT_STDIN`
7575
),
7676
}

internal/strict/controls/controls.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const (
4444
// RequireExplicitBootstrap is the control that prevents the backend for remote state from being bootstrapped unless the `--backend-bootstrap` flag is specified.
4545
RequireExplicitBootstrap = "require-explicit-bootstrap"
4646

47-
// CLIRedesign is the control that prevents the use of deprecated commands.
47+
// CLIRedesign is the control that prevents the use of commands deprecated as part of the CLI Redesign.
4848
CLIRedesign = "cli-redesign"
4949
)
5050

@@ -103,7 +103,7 @@ func New() strict.Controls {
103103
requireExplicitBootstrapControl,
104104
&Control{
105105
Name: CLIRedesign,
106-
Description: "Prevents deprecated commands from being used.",
106+
Description: "Prevents the use of commands deprecated as part of the CLI Redesign.",
107107
Category: stageCategory,
108108
},
109109
&Control{

0 commit comments

Comments
 (0)