Skip to content

Commit e683b87

Browse files
authored
fix(account): pass-through API response for JSON and YAML outputs (#257)
1 parent 9195910 commit e683b87

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

internal/commands/account/show.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ func (s *showCommand) ExecuteWithoutArguments(exec commands.Executor) (output.Ou
2626
if err != nil {
2727
return nil, err
2828
}
29-
return output.Details{
29+
30+
details, err := output.Details{
3031
Sections: []output.DetailSection{
3132
{
3233
Rows: []output.DetailRow{
@@ -80,6 +81,11 @@ func (s *showCommand) ExecuteWithoutArguments(exec commands.Executor) (output.Ou
8081
},
8182
},
8283
}, nil
84+
85+
return output.MarshaledWithHumanOutput{
86+
Value: account,
87+
Output: details,
88+
}, err
8389
}
8490

8591
func formatCredits(credits float64) string {

0 commit comments

Comments
 (0)