Skip to content

Commit b45d20c

Browse files
committed
fix: Adding what should fix this, but it doesn't...
1 parent 97c2e09 commit b45d20c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

cli/commands/info/cli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ const (
1414
)
1515

1616
func NewCommand(opts *options.TerragruntOptions) *cli.Command {
17-
prefix := flags.Prefix{CommandName}
17+
tgPrefix := flags.Prefix{flags.TgPrefix}
1818

1919
return &cli.Command{
2020
Name: CommandName,
2121
Usage: "List of commands to display Terragrunt settings.",
2222
Subcommands: cli.Commands{
23-
strict.NewCommand(opts, prefix),
24-
print.NewCommand(opts, prefix),
23+
strict.NewCommand(opts, tgPrefix),
24+
print.NewCommand(opts, tgPrefix),
2525
},
2626
ErrorOnUndefinedFlag: true,
2727
Action: cli.ShowCommandHelp,

cli/commands/info/print/command.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,16 @@ type InfoOutput struct {
3232
WorkingDir string `json:"working_dir"`
3333
}
3434

35-
func NewListFlags(opts *options.TerragruntOptions, prefix flags.Prefix) cli.Flags {
35+
func NewFlags(opts *options.TerragruntOptions, prefix flags.Prefix) cli.Flags {
3636
return run.NewFlags(opts, prefix)
3737
}
3838

3939
func NewCommand(opts *options.TerragruntOptions, prefix flags.Prefix) *cli.Command {
40-
prefix = prefix.Append(CommandName)
41-
4240
return &cli.Command{
4341
Name: CommandName,
4442
Usage: "Print out a short description of Terragrunt context.",
4543
UsageText: "terragrunt info print",
46-
Flags: NewListFlags(opts, prefix),
44+
Flags: NewFlags(opts, prefix),
4745
ErrorOnUndefinedFlag: true,
4846
Action: func(ctx *cli.Context) error {
4947
target := run.NewTargetWithErrorHandler(run.TargetPointDownloadSource, handleTerragruntContextPrint, handleTerragruntContextPrintWithError)

0 commit comments

Comments
 (0)