-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathuser.go
34 lines (30 loc) · 1.17 KB
/
user.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package user
import (
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/user/create"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/user/delete"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/user/describe"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/user/list"
resetpassword "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/user/reset-password"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/print"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
"github.com/spf13/cobra"
)
func NewCmd(p *print.Printer) *cobra.Command {
cmd := &cobra.Command{
Use: "user",
Short: "Provides functionality for SQLServer Flex users",
Long: "Provides functionality for SQLServer Flex users.",
Args: args.NoArgs,
Run: utils.CmdHelp,
}
addSubcommands(cmd, p)
return cmd
}
func addSubcommands(cmd *cobra.Command, p *print.Printer) {
cmd.AddCommand(create.NewCmd(p))
cmd.AddCommand(delete.NewCmd(p))
cmd.AddCommand(describe.NewCmd(p))
cmd.AddCommand(list.NewCmd(p))
cmd.AddCommand(resetpassword.NewCmd(p))
}