@@ -13,6 +13,7 @@ import (
1313 flexibleip "github.com/scaleway/scaleway-cli/v2/internal/namespaces/flexibleip/v1alpha1"
1414 function "github.com/scaleway/scaleway-cli/v2/internal/namespaces/function/v1beta1"
1515 "github.com/scaleway/scaleway-cli/v2/internal/namespaces/help"
16+ iam "github.com/scaleway/scaleway-cli/v2/internal/namespaces/iam/v1alpha1"
1617 "github.com/scaleway/scaleway-cli/v2/internal/namespaces/info"
1718 initNamespace "github.com/scaleway/scaleway-cli/v2/internal/namespaces/init"
1819 "github.com/scaleway/scaleway-cli/v2/internal/namespaces/instance/v1"
@@ -32,7 +33,7 @@ import (
3233// GetCommands returns a list of all commands in the CLI.
3334// It is used by both scw and scw-qa.
3435// We can not put it in `core` package as it would result in a import cycle `core` -> `namespaces/autocomplete` -> `core`.
35- func GetCommands () * core.Commands {
36+ func GetCommands (beta ... bool ) * core.Commands {
3637 // Import all commands available in CLI from various packages.
3738 // NB: Merge order impacts scw usage sort.
3839 commands := core .NewCommands ()
@@ -61,5 +62,8 @@ func GetCommands() *core.Commands {
6162 commands .Merge (function .GetCommands ())
6263 commands .Merge (vpcgw .GetCommands ())
6364 commands .Merge (redis .GetCommands ())
65+ if len (beta ) == 1 && beta [0 ] {
66+ commands .Merge (iam .GetCommands ())
67+ }
6468 return commands
6569}
0 commit comments