Skip to content

Commit

Permalink
fix(zone): show full API response in marshaled outputs (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
villevsv-upcloud authored Oct 16, 2023
1 parent e683b87 commit 29b94cd
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions internal/commands/zone/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,15 @@ func (s *listCommand) ExecuteWithoutArguments(exec commands.Executor) (output.Ou
})
}

return output.Table{
Columns: []output.TableColumn{
{Key: "id", Header: "ID"},
{Key: "description", Header: "Description"},
{Key: "public", Header: "Public", Format: format.Boolean},
return output.MarshaledWithHumanOutput{
Value: zones,
Output: output.Table{
Columns: []output.TableColumn{
{Key: "id", Header: "ID"},
{Key: "description", Header: "Description"},
{Key: "public", Header: "Public", Format: format.Boolean},
},
Rows: rows,
},
Rows: rows,
}, nil
}

0 comments on commit 29b94cd

Please sign in to comment.