Skip to content

Commit 124868a

Browse files
author
Yago Carlos Fernandez Gou
committed
Address review: move command to beta
1 parent 0928e27 commit 124868a

File tree

14 files changed

+19
-19
lines changed

14 files changed

+19
-19
lines changed

internal/cmd/beta/beta.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package beta
22

33
import (
44
"fmt"
5+
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/intake"
56

67
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/alb"
78
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex"
@@ -38,4 +39,5 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
3839
func addSubcommands(cmd *cobra.Command, params *params.CmdParams) {
3940
cmd.AddCommand(sqlserverflex.NewCmd(params))
4041
cmd.AddCommand(alb.NewCmd(params))
42+
cmd.AddCommand(intake.NewCmd(params))
4143
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package intake
22

33
import (
44
"github.com/spf13/cobra"
5-
"github.com/stackitcloud/stackit-cli/internal/cmd/intake/runner"
5+
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/intake/runner"
66
"github.com/stackitcloud/stackit-cli/internal/cmd/params"
77
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
88
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"

internal/cmd/intake/runner/create/create.go renamed to internal/cmd/beta/intake/runner/create/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ func NewCreateCmd(p *params.CmdParams) *cobra.Command {
4848
Example: examples.Build(
4949
examples.NewExample(
5050
`Create a new Intake Runner with a display name and message capacity limits`,
51-
`$ stackit intake runner create --display-name my-runner --max-message-size-kib 1000 --max-messages-per-hour 5000`),
51+
`$ stackit beta intake runner create --display-name my-runner --max-message-size-kib 1000 --max-messages-per-hour 5000`),
5252
examples.NewExample(
5353
`Create a new Intake Runner with a description and labels`,
54-
`$ stackit intake runner create --display-name my-runner --max-message-size-kib 1000 --max-messages-per-hour 5000 --description "Main runner for production" --labels="env=prod,team=billing"`),
54+
`$ stackit beta intake runner create --display-name my-runner --max-message-size-kib 1000 --max-messages-per-hour 5000 --description "Main runner for production" --labels="env=prod,team=billing"`),
5555
),
5656
RunE: func(cmd *cobra.Command, _ []string) error {
5757
ctx := context.Background()
File renamed without changes.

internal/cmd/intake/runner/delete/delete.go renamed to internal/cmd/beta/intake/runner/delete/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func NewDeleteCmd(p *params.CmdParams) *cobra.Command {
3636
Example: examples.Build(
3737
examples.NewExample(
3838
`Delete an Intake Runner with ID "xxx"`,
39-
`$ stackit intake runner delete xxx`),
39+
`$ stackit beta intake runner delete xxx`),
4040
),
4141
RunE: func(cmd *cobra.Command, args []string) error {
4242
ctx := context.Background()
File renamed without changes.

internal/cmd/intake/runner/describe/describe.go renamed to internal/cmd/beta/intake/runner/describe/describe.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ func NewDescribeCmd(p *params.CmdParams) *cobra.Command {
3838
Example: examples.Build(
3939
examples.NewExample(
4040
`Get details of an Intake Runner with ID "xxx"`,
41-
`$ stackit intake runner describe xxx`),
41+
`$ stackit beta intake runner describe xxx`),
4242
examples.NewExample(
4343
`Get details of an Intake Runner with ID "xxx" in JSON format`,
44-
`$ stackit intake runner describe xxx --output-format json`),
44+
`$ stackit beta intake runner describe xxx --output-format json`),
4545
),
4646
RunE: func(cmd *cobra.Command, args []string) error {
4747
ctx := context.Background()

internal/cmd/intake/runner/describe/describe_test.go renamed to internal/cmd/beta/intake/runner/describe/describe_test.go

File renamed without changes.

internal/cmd/intake/runner/list/list.go renamed to internal/cmd/beta/intake/runner/list/list.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ func NewListCmd(p *params.CmdParams) *cobra.Command {
4040
Example: examples.Build(
4141
examples.NewExample(
4242
`List all Intake Runners`,
43-
`$ stackit intake runner list`),
43+
`$ stackit beta intake runner list`),
4444
examples.NewExample(
4545
`List all Intake Runners in JSON format`,
46-
`$ stackit intake runner list --output-format json`),
46+
`$ stackit beta intake runner list --output-format json`),
4747
examples.NewExample(
4848
`List up to 5 Intake Runners`,
49-
`$ stackit intake runner list --limit 5`),
49+
`$ stackit beta intake runner list --limit 5`),
5050
),
5151
RunE: func(cmd *cobra.Command, _ []string) error {
5252
ctx := context.Background()
File renamed without changes.

0 commit comments

Comments
 (0)