From 29b94cd215bae546a91a835737e11d3a681aabc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4lim=C3=A4ki?= <110451292+villevsv-upcloud@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:39:51 +0300 Subject: [PATCH] fix(zone): show full API response in marshaled outputs (#253) --- internal/commands/zone/list.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/internal/commands/zone/list.go b/internal/commands/zone/list.go index 1d76de006..bb6d96be9 100644 --- a/internal/commands/zone/list.go +++ b/internal/commands/zone/list.go @@ -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 }