Skip to content

Commit

Permalink
api: prettify versionsapi-list output
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed Jan 5, 2024
1 parent 31c52fb commit abbd217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/versionsapi/cli/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func runList(cmd *cobra.Command, _ []string) (retErr error) {
for _, v := range patchVersions {
vers = append(vers, v.Version())
}
raw, err := json.Marshal(vers)
raw, err := json.MarshalIndent(vers, "", " ")
if err != nil {
return fmt.Errorf("marshaling versions: %w", err)
}
Expand Down

0 comments on commit abbd217

Please sign in to comment.