Skip to content

Commit

Permalink
fix(account): pass-through API response for JSON and YAML outputs (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta authored Oct 16, 2023
1 parent 9195910 commit e683b87
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/commands/account/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ func (s *showCommand) ExecuteWithoutArguments(exec commands.Executor) (output.Ou
if err != nil {
return nil, err
}
return output.Details{

details, err := output.Details{
Sections: []output.DetailSection{
{
Rows: []output.DetailRow{
Expand Down Expand Up @@ -80,6 +81,11 @@ func (s *showCommand) ExecuteWithoutArguments(exec commands.Executor) (output.Ou
},
},
}, nil

return output.MarshaledWithHumanOutput{
Value: account,
Output: details,
}, err
}

func formatCredits(credits float64) string {
Expand Down

0 comments on commit e683b87

Please sign in to comment.