Skip to content

Commit bffd4a3

Browse files
committed
chore: Hiding some more CLI flags that aren't always relevant
1 parent b69ab3e commit bffd4a3

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

cli/commands/run/flags.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ func NewFlags(l log.Logger, opts *options.TerragruntOptions, prefix flags.Prefix
247247
EnvVars: tgPrefix.EnvVars(NoDependencyFetchOutputFromStateFlagName),
248248
Destination: &opts.NoDependencyFetchOutputFromState,
249249
Usage: "Disable the dependency-fetch-output-from-state feature even when the experiment is enabled.",
250+
Hidden: true,
250251
}),
251252

252253
flags.NewFlag(&cli.BoolFlag{
@@ -278,6 +279,7 @@ func NewFlags(l log.Logger, opts *options.TerragruntOptions, prefix flags.Prefix
278279
EnvVars: tgPrefix.EnvVars(DisableCommandValidationFlagName),
279280
Destination: &opts.DisableCommandValidation,
280281
Usage: "When this flag is set, Terragrunt will not validate the tofu/terraform command.",
282+
Hidden: true,
281283
Action: func(ctx *cli.Context, value bool) error {
282284
if value {
283285
return opts.StrictControls.FilterByNames(controls.DisableCommandValidation).Evaluate(ctx.Context)
@@ -408,6 +410,7 @@ func NewFlags(l log.Logger, opts *options.TerragruntOptions, prefix flags.Prefix
408410
EnvVars: tgPrefix.EnvVars(NoEngineFlagName),
409411
Destination: &opts.NoEngine,
410412
Usage: "Disable IaC engines even when the iac-engine experiment is enabled.",
413+
Hidden: true,
411414
}),
412415

413416
flags.NewFlag(&cli.BoolFlag{

cli/flags/shared/shared.go

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -150,26 +150,12 @@ func NewQueueFlags(opts *options.TerragruntOptions, prefix flags.Prefix) cli.Fla
150150
flags.WithDeprecatedEnvVars(terragruntPrefix.EnvVars("include-external-dependencies"), terragruntPrefixControl),
151151
),
152152

153-
// TODO: This flag needs to be handled carefully, as it means something semantically different than the `--filters-file` flag.
154-
//
155-
// We need to make sure that when the user supplies a `--queue-excludes-file` flag, that it's parsed, and then updated to an equivalent filter query.
156-
//
157-
// e.g.
158-
//
159-
// # .terragrunt-excludes
160-
//
161-
// foo
162-
// nested/bar
163-
//
164-
// # Equivalent filter queries
165-
//
166-
// !./foo
167-
// !./nested/bar
168153
flags.NewFlag(
169154
&cli.GenericFlag[string]{
170155
Name: QueueExcludesFileFlagName,
171156
EnvVars: tgPrefix.EnvVars(QueueExcludesFileFlagName),
172157
Destination: &opts.ExcludesFile,
158+
Hidden: true,
173159
Usage: "Path to a file with a list of directories that need to be excluded when running *-all commands.",
174160
},
175161
flags.WithDeprecatedEnvVars(terragruntPrefix.EnvVars("excludes-file"), terragruntPrefixControl),

0 commit comments

Comments
 (0)