Skip to content

Commit

Permalink
Fix issue with config list header output
Browse files Browse the repository at this point in the history
When there was a lot of data, it would show up inside the list output
  • Loading branch information
ipmb committed Aug 12, 2022
1 parent e0842d5 commit b3a7c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ var listCmd = &cobra.Command{
checkErr(err)
bridge.SortParameters(parameters)
ui.Spinner.Stop()
ui.PrintHeaderln(fmt.Sprintf("%s Config Vars", AppName))
for _, value := range parameters {
parts := strings.Split(*value.Name, "/")
varname := parts[len(parts)-1]
printRow(w, varname, *value.Value)
}
ui.PrintHeaderln(fmt.Sprintf("%s Config Vars", AppName))
checkErr(w.Flush())
if a.IsReviewApp() {
fmt.Println()
Expand Down

0 comments on commit b3a7c5a

Please sign in to comment.