Skip to content

Commit fa1efbb

Browse files
authored
feat: Show stack output descriptions (#284)
1 parent b827c40 commit fa1efbb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

internal/cmd/stack/outputs.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ import (
1212
)
1313

1414
type output struct {
15-
ID string `graphql:"id" json:"id,omitempty"`
16-
Sensitive bool `graphql:"sensitive" json:"sensitive,omitempty"`
17-
Value string `graphql:"value" json:"value,omitempty"`
15+
ID string `graphql:"id" json:"id,omitempty"`
16+
Sensitive bool `graphql:"sensitive" json:"sensitive,omitempty"`
17+
Description string `graphql:"description" json:"description,omitempty"`
18+
Value string `graphql:"value" json:"value,omitempty"`
1819
}
1920

2021
type showOutputsQuery struct {
@@ -74,12 +75,13 @@ func (c *showOutputsStackCommand) showOutputs(cliCtx *cli.Context) error {
7475
}
7576

7677
func (c *showOutputsStackCommand) showOutputsTable(outputs []output) error {
77-
tableData := [][]string{{"Name", "Sensitive", "Value"}}
78+
tableData := [][]string{{"Name", "Sensitive", "Value", "Description"}}
7879
for _, output := range outputs {
7980
tableData = append(tableData, []string{
8081
output.ID,
8182
strconv.FormatBool(output.Sensitive),
8283
output.Value,
84+
output.Description,
8385
})
8486

8587
}

0 commit comments

Comments
 (0)