@@ -36,15 +36,17 @@ import (
36
36
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/shell"
37
37
tem "github.com/scaleway/scaleway-cli/v2/internal/namespaces/tem/v1alpha1"
38
38
versionNamespace "github.com/scaleway/scaleway-cli/v2/internal/namespaces/version"
39
- "github.com/scaleway/scaleway-cli/v2/internal/namespaces/vpc/v1"
39
+ vpcV1 "github.com/scaleway/scaleway-cli/v2/internal/namespaces/vpc/v1"
40
+ vpcV2 "github.com/scaleway/scaleway-cli/v2/internal/namespaces/vpc/v2"
40
41
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/vpcgw/v1"
41
42
webhosting "github.com/scaleway/scaleway-cli/v2/internal/namespaces/webhosting/v1alpha1"
43
+ "github.com/scaleway/scaleway-sdk-go/scw"
42
44
)
43
45
44
46
var labs = os .Getenv ("SCW_ENABLE_LABS" ) == "true"
45
47
46
48
// Enable beta in the code when products are in beta
47
- // var beta = os.Getenv(scw.ScwEnableBeta) == "true"
49
+ var beta = os .Getenv (scw .ScwEnableBeta ) == "true"
48
50
49
51
// GetCommands returns a list of all commands in the CLI.
50
52
// It is used by both scw and scw-qa.
@@ -72,7 +74,7 @@ func GetCommands() *core.Commands {
72
74
lb .GetCommands (),
73
75
iot .GetCommands (),
74
76
help .GetCommands (),
75
- vpc .GetCommands (),
77
+ vpcV1 .GetCommands (),
76
78
domain .GetCommands (),
77
79
applesilicon .GetCommands (),
78
80
flexibleip .GetCommands (),
@@ -91,6 +93,9 @@ func GetCommands() *core.Commands {
91
93
if labs {
92
94
commands .Merge (ipfs .GetCommands ())
93
95
}
96
+ if beta {
97
+ commands .Merge (vpcV2 .GetCommands ())
98
+ }
94
99
95
100
return commands
96
101
}
0 commit comments