Skip to content

Commit 6d7009a

Browse files
committed
improve list and describe
1 parent bc1c7af commit 6d7009a

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

internal/cmd/beta/vpn/gateway/describe/describe.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,17 @@ func outputResult(p *print.Printer, outputFormat, gatewayId, projectLabel string
105105
table.AddSeparator()
106106
table.AddRow("NAME", gateway.DisplayName)
107107
table.AddSeparator()
108+
table.AddRow("Labels", gateway.Labels)
109+
table.AddSeparator()
108110
table.AddRow("STATE", utils.PtrString(gateway.State))
111+
table.AddSeparator()
112+
table.AddRow("Plan ID", gateway.PlanId)
113+
table.AddSeparator()
114+
table.AddRow("Routing Type", gateway.RoutingType)
115+
table.AddSeparator()
116+
table.AddRow("Availability Zones Tunnel 1", gateway.AvailabilityZones.Tunnel1)
117+
table.AddSeparator()
118+
table.AddRow("Availability Zones Tunnel 2", gateway.AvailabilityZones.Tunnel2)
109119

110120
if err := table.Display(p); err != nil {
111121
return fmt.Errorf("render tables: %w", err)

internal/cmd/beta/vpn/gateway/list/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ func outputResult(p *print.Printer, outputFormat string, gateways []vpn.GatewayR
123123

124124
for _, gateway := range gateways {
125125
table.AddRow(
126-
gateway.Id,
126+
utils.PtrString(gateway.Id),
127127
gateway.DisplayName,
128-
gateway.State,
128+
utils.PtrString(gateway.State),
129129
)
130130
}
131131
p.Outputln(table.Render())

0 commit comments

Comments
 (0)