File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ const (
1414)
1515
1616func 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 ,
Original file line number Diff line number Diff 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
3939func 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 )
You can’t perform that action at this time.
0 commit comments