Skip to content

Commit 29b94cd

Browse files
fix(zone): show full API response in marshaled outputs (#253)
1 parent e683b87 commit 29b94cd

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

internal/commands/zone/list.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@ func (s *listCommand) ExecuteWithoutArguments(exec commands.Executor) (output.Ou
3434
})
3535
}
3636

37-
return output.Table{
38-
Columns: []output.TableColumn{
39-
{Key: "id", Header: "ID"},
40-
{Key: "description", Header: "Description"},
41-
{Key: "public", Header: "Public", Format: format.Boolean},
37+
return output.MarshaledWithHumanOutput{
38+
Value: zones,
39+
Output: output.Table{
40+
Columns: []output.TableColumn{
41+
{Key: "id", Header: "ID"},
42+
{Key: "description", Header: "Description"},
43+
{Key: "public", Header: "Public", Format: format.Boolean},
44+
},
45+
Rows: rows,
4246
},
43-
Rows: rows,
4447
}, nil
4548
}

0 commit comments

Comments
 (0)