Skip to content

Commit

Permalink
reset config list changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wdbaruni committed Oct 7, 2024
1 parent f7a5002 commit 82ed6a5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cmd/cli/config/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ Each key shown can be used with:
type configListEntry struct {
Key string
Value any
EnvVar string
Description string
}

Expand Down Expand Up @@ -81,7 +80,6 @@ func list(cmd *cobra.Command, cfg *config.Config, o output.OutputOptions) error
cfgList = append(cfgList, configListEntry{
Key: key,
Value: cfg.Get(key),
EnvVar: config.KeyAsEnvVar(key),
Description: description,
})
}
Expand All @@ -106,12 +104,6 @@ var listColumns = []output.TableColumn[configListEntry]{
return fmt.Sprintf("%v", s.Value)
},
},
{
ColumnConfig: table.ColumnConfig{Name: "Environment Variable", WidthMax: 80, WidthMaxEnforcer: text.WrapHard},
Value: func(v configListEntry) string {
return fmt.Sprintf("%v", v.EnvVar)
},
},
{
ColumnConfig: table.ColumnConfig{Name: "Description", WidthMax: 80, WidthMaxEnforcer: text.WrapSoft},
Value: func(v configListEntry) string {
Expand Down

0 comments on commit 82ed6a5

Please sign in to comment.