Skip to content

Commit 643099b

Browse files
committed
feature: renamed package to conform to standards
1 parent 6340e35 commit 643099b

File tree

12 files changed

+17
-43
lines changed

12 files changed

+17
-43
lines changed

internal/cmd/beta/beta.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
networkArea "github.com/stackitcloud/stackit-cli/internal/cmd/beta/network-area"
99
networkinterface "github.com/stackitcloud/stackit-cli/internal/cmd/beta/network-interface"
1010
publicip "github.com/stackitcloud/stackit-cli/internal/cmd/beta/public-ip"
11-
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/security_group"
11+
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/security-group"
1212
securitygroup "github.com/stackitcloud/stackit-cli/internal/cmd/beta/security-group"
1313
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/server"
1414
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex"
File renamed without changes.

internal/cmd/beta/security_group/create/create_test.go renamed to internal/cmd/beta/security-group/create/create_test.go

File renamed without changes.
File renamed without changes.

internal/cmd/beta/security_group/delete/delete_test.go renamed to internal/cmd/beta/security-group/delete/delete_test.go

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
package securitygroup
1+
package security_group
22

33
import (
4-
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/security-group/rule"
4+
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/security-group/create"
5+
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/security-group/delete"
6+
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/security-group/describe"
7+
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/security-group/list"
8+
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/security-group/update"
59
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
610
"github.com/stackitcloud/stackit-cli/internal/pkg/print"
11+
712
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
813

914
"github.com/spf13/cobra"
@@ -12,8 +17,8 @@ import (
1217
func NewCmd(p *print.Printer) *cobra.Command {
1318
cmd := &cobra.Command{
1419
Use: "security-group",
15-
Short: "Provides functionality for security groups",
16-
Long: "Provides functionality for security groups.",
20+
Short: "manage security groups.",
21+
Long: "manage the lifecycle of security groups.",
1722
Args: args.NoArgs,
1823
Run: utils.CmdHelp,
1924
}
@@ -22,5 +27,11 @@ func NewCmd(p *print.Printer) *cobra.Command {
2227
}
2328

2429
func addSubcommands(cmd *cobra.Command, p *print.Printer) {
25-
cmd.AddCommand(rule.NewCmd(p))
30+
cmd.AddCommand(
31+
create.NewCmd(p),
32+
delete.NewCmd(p),
33+
describe.NewCmd(p),
34+
list.NewCmd(p),
35+
update.NewCmd(p),
36+
)
2637
}
File renamed without changes.

0 commit comments

Comments
 (0)