Skip to content

Commit cd0d9e2

Browse files
committed
feat: move IaaS commands from beta to GA
1 parent 6213bb5 commit cd0d9e2

File tree

273 files changed

+444
-444
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+444
-444
lines changed

internal/cmd/beta/affinity-groups/affinity-groups.go renamed to internal/cmd/affinity-groups/affinity-groups.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package affinity_groups
22

33
import (
44
"github.com/spf13/cobra"
5-
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/affinity-groups/create"
6-
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/affinity-groups/delete"
7-
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/affinity-groups/describe"
8-
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/affinity-groups/list"
5+
"github.com/stackitcloud/stackit-cli/internal/cmd/affinity-groups/create"
6+
"github.com/stackitcloud/stackit-cli/internal/cmd/affinity-groups/delete"
7+
"github.com/stackitcloud/stackit-cli/internal/cmd/affinity-groups/describe"
8+
"github.com/stackitcloud/stackit-cli/internal/cmd/affinity-groups/list"
99
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
1010
"github.com/stackitcloud/stackit-cli/internal/pkg/print"
1111
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"

internal/cmd/beta/affinity-groups/create/create.go renamed to internal/cmd/affinity-groups/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
3838
Example: examples.Build(
3939
examples.NewExample(
4040
`Create an affinity group with name "AFFINITY_GROUP_NAME" and policy "soft-affinity"`,
41-
"$ stackit beta affinity-group create --name AFFINITY_GROUP_NAME --policy soft-affinity",
41+
"$ stackit affinity-group create --name AFFINITY_GROUP_NAME --policy soft-affinity",
4242
),
4343
),
4444
RunE: func(cmd *cobra.Command, _ []string) error {
File renamed without changes.

internal/cmd/beta/affinity-groups/delete/delete.go renamed to internal/cmd/affinity-groups/delete/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
3535
Example: examples.Build(
3636
examples.NewExample(
3737
`Delete an affinity group with ID "xxx"`,
38-
"$ stackit beta affinity-group delete xxx",
38+
"$ stackit affinity-group delete xxx",
3939
),
4040
),
4141
RunE: func(cmd *cobra.Command, args []string) error {
File renamed without changes.

internal/cmd/beta/affinity-groups/describe/describe.go renamed to internal/cmd/affinity-groups/describe/describe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
3636
Example: examples.Build(
3737
examples.NewExample(
3838
`Get details about an affinity group with the ID "xxx"`,
39-
"$ stackit beta affinity-group describe xxx",
39+
"$ stackit affinity-group describe xxx",
4040
),
4141
),
4242
RunE: func(cmd *cobra.Command, args []string) error {

internal/cmd/beta/affinity-groups/describe/describe_test.go renamed to internal/cmd/affinity-groups/describe/describe_test.go

File renamed without changes.

internal/cmd/beta/affinity-groups/list/list.go renamed to internal/cmd/affinity-groups/list/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ func NewCmd(p *print.Printer) *cobra.Command {
3636
Example: examples.Build(
3737
examples.NewExample(
3838
"Lists all affinity groups",
39-
"$ stackit beta affinity-group list",
39+
"$ stackit affinity-group list",
4040
),
4141
examples.NewExample(
4242
"Lists up to 10 affinity groups",
43-
"$ stackit beta affinity-group list --limit=10",
43+
"$ stackit affinity-group list --limit=10",
4444
),
4545
),
4646
RunE: func(cmd *cobra.Command, _ []string) error {
File renamed without changes.

internal/cmd/beta/beta.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,7 @@ package beta
33
import (
44
"fmt"
55

6-
affinityGroups "github.com/stackitcloud/stackit-cli/internal/cmd/beta/affinity-groups"
7-
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/image"
8-
keypair "github.com/stackitcloud/stackit-cli/internal/cmd/beta/key-pair"
9-
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/network"
10-
networkArea "github.com/stackitcloud/stackit-cli/internal/cmd/beta/network-area"
11-
networkinterface "github.com/stackitcloud/stackit-cli/internal/cmd/beta/network-interface"
12-
publicip "github.com/stackitcloud/stackit-cli/internal/cmd/beta/public-ip"
13-
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/quota"
14-
securitygroup "github.com/stackitcloud/stackit-cli/internal/cmd/beta/security-group"
15-
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/server"
166
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex"
17-
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/volume"
187
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
198
"github.com/stackitcloud/stackit-cli/internal/pkg/examples"
209
"github.com/stackitcloud/stackit-cli/internal/pkg/print"
@@ -47,15 +36,4 @@ func NewCmd(p *print.Printer) *cobra.Command {
4736

4837
func addSubcommands(cmd *cobra.Command, p *print.Printer) {
4938
cmd.AddCommand(sqlserverflex.NewCmd(p))
50-
cmd.AddCommand(server.NewCmd(p))
51-
cmd.AddCommand(networkArea.NewCmd(p))
52-
cmd.AddCommand(network.NewCmd(p))
53-
cmd.AddCommand(volume.NewCmd(p))
54-
cmd.AddCommand(networkinterface.NewCmd(p))
55-
cmd.AddCommand(publicip.NewCmd(p))
56-
cmd.AddCommand(securitygroup.NewCmd(p))
57-
cmd.AddCommand(keypair.NewCmd(p))
58-
cmd.AddCommand(image.NewCmd(p))
59-
cmd.AddCommand(quota.NewCmd(p))
60-
cmd.AddCommand(affinityGroups.NewCmd(p))
6139
}

0 commit comments

Comments
 (0)