Skip to content

Commit 2d2a5bd

Browse files
committed
fix
1 parent 8b9e592 commit 2d2a5bd

7 files changed

+7
-31
lines changed

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-network-usage#01.golden

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@ USAGE:
66
scw vpc-gw gateway-network <command>
77

88
AVAILABLE COMMANDS:
9-
-v2 Gateway Networks management
10-
create Attach a Public Gateway to a Private Network
119
create-v2 Attach a Public Gateway to a Private Network
12-
delete Detach a Public Gateway from a Private Network
1310
delete-v2 Detach a Public Gateway from a Private Network
14-
get Get a Public Gateway connection to a Private Network
1511
get-v2 Get a Public Gateway connection to a Private Network
16-
list List Public Gateway connections to Private Networks
1712
list-v2 List Public Gateway connections to Private Networks
18-
update Update a Public Gateway's connection to a Private Network
1913
update-v2 Update a Public Gateway's connection to a Private Network
2014

2115
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-type-usage#01.golden

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ USAGE:
66
scw vpc-gw gateway-type <command>
77

88
AVAILABLE COMMANDS:
9-
-v2 Gateway types information
10-
list List Public Gateway types
119
list-v2 List Public Gateway types
1210

1311
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-usage#01.golden

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,13 @@ USAGE:
66
scw vpc-gw gateway <command>
77

88
AVAILABLE COMMANDS:
9-
-v2 Public Gateway management
10-
create Create a Public Gateway
119
create-v2 Create a Public Gateway
12-
delete Delete a Public Gateway
1310
delete-v2 Delete a Public Gateway
14-
enable-ip-mobility Upgrade a Public Gateway to IP mobility
15-
get Get a Public Gateway
1611
get-v2 Get a Public Gateway
17-
list List Public Gateways
1812
list-v2 List Public Gateways
1913
migrate-to-v2 Put a Public Gateway in IPAM mode
20-
refresh-ssh-keys Refresh a Public Gateway's SSH keys
2114
refresh-ssh-keys-v2 Refresh a Public Gateway's SSH keys
22-
update Update a Public Gateway
2315
update-v2 Update a Public Gateway
24-
upgrade Upgrade a Public Gateway to the latest version and/or to a different commercial offer type
2516
upgrade-v2 Upgrade a Public Gateway to the latest version and/or to a different commercial offer type
2617

2718
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-ip-usage#01.golden

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@ USAGE:
66
scw vpc-gw ip <command>
77

88
AVAILABLE COMMANDS:
9-
-v2 IP address management
10-
create Reserve an IP
119
create-v2 Reserve an IP
12-
delete Delete an IP
1310
delete-v2 Delete an IP
14-
get Get an IP
1511
get-v2 Get an IP
16-
list List IPs
1712
list-v2 List IPs
18-
update Update an IP
1913
update-v2 Update an IP
2014

2115
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-pat-rule-usage#01.golden

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,11 @@ USAGE:
66
scw vpc-gw pat-rule <command>
77

88
AVAILABLE COMMANDS:
9-
-v2 PAT rules management
10-
create Create a PAT rule
119
create-v2 Create a PAT rule
12-
delete Delete a PAT rule
1310
delete-v2 Delete a PAT rule
14-
get Get a PAT rule
1511
get-v2 Get a PAT rule
16-
list List PAT rules
1712
list-v2 List PAT rules
18-
set Set all PAT rules
1913
set-v2 Set all PAT rules
20-
update Update a PAT rule
2114
update-v2 Update a PAT rule
2215

2316
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-usage.golden

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ USAGE:
88
AVAILABLE COMMANDS:
99
dhcp DHCP configuration management
1010
dhcp-entry DHCP entries management
11+
gateway Public Gateway management
12+
gateway-network Gateway Networks management
13+
gateway-type Gateway types information
14+
ip IP address management
15+
pat-rule PAT rules management
1116

1217
FLAGS:
1318
-h, --help help for vpc-gw

internal/namespaces/vpcgw/v1/custom.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
func GetCommands() *core.Commands {
1010
cmds := GetGeneratedCommands()
1111
for _, cmd := range cmds.GetAll() {
12-
if cmd.Resource == "" {
12+
if cmd.Resource == "" || cmd.Verb == "" {
1313
continue
1414
}
1515
if cmd.Verb == "migrate-to-v2" {
@@ -20,6 +20,7 @@ func GetCommands() *core.Commands {
2020
}
2121
cmd.Hidden = true
2222
}
23+
2324
human.RegisterMarshalerFunc(vpcgw.GatewayNetworkStatus(""), human.EnumMarshalFunc(gatewayNetworkStatusMarshalSpecs))
2425
human.RegisterMarshalerFunc(vpcgw.GatewayStatus(""), human.EnumMarshalFunc(gatewayStatusMarshalSpecs))
2526
human.RegisterMarshalerFunc(vpcgw.Gateway{}, gatewayMarshalerFunc)

0 commit comments

Comments
 (0)