From fa1efbb48be1658e024e464796b4a1b7c7d3fbee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Ledwo=C5=84?= Date: Tue, 21 Jan 2025 09:14:08 +0100 Subject: [PATCH] feat: Show stack output descriptions (#284) --- internal/cmd/stack/outputs.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/internal/cmd/stack/outputs.go b/internal/cmd/stack/outputs.go index 66e6f51..484f874 100644 --- a/internal/cmd/stack/outputs.go +++ b/internal/cmd/stack/outputs.go @@ -12,9 +12,10 @@ import ( ) type output struct { - ID string `graphql:"id" json:"id,omitempty"` - Sensitive bool `graphql:"sensitive" json:"sensitive,omitempty"` - Value string `graphql:"value" json:"value,omitempty"` + ID string `graphql:"id" json:"id,omitempty"` + Sensitive bool `graphql:"sensitive" json:"sensitive,omitempty"` + Description string `graphql:"description" json:"description,omitempty"` + Value string `graphql:"value" json:"value,omitempty"` } type showOutputsQuery struct { @@ -74,12 +75,13 @@ func (c *showOutputsStackCommand) showOutputs(cliCtx *cli.Context) error { } func (c *showOutputsStackCommand) showOutputsTable(outputs []output) error { - tableData := [][]string{{"Name", "Sensitive", "Value"}} + tableData := [][]string{{"Name", "Sensitive", "Value", "Description"}} for _, output := range outputs { tableData = append(tableData, []string{ output.ID, strconv.FormatBool(output.Sensitive), output.Value, + output.Description, }) }