Skip to content

Commit

Permalink
feat: Show stack output descriptions (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
Axot017 authored Jan 21, 2025
1 parent b827c40 commit fa1efbb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions internal/cmd/stack/outputs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
})

}
Expand Down

0 comments on commit fa1efbb

Please sign in to comment.