-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathpostgresflex.go
More file actions
33 lines (29 loc) · 1.08 KB
/
postgresflex.go
File metadata and controls
33 lines (29 loc) · 1.08 KB
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
package postgresflex
import (
"github.com/stackitcloud/stackit-cli/internal/cmd/postgresflex/backup"
"github.com/stackitcloud/stackit-cli/internal/cmd/postgresflex/instance"
"github.com/stackitcloud/stackit-cli/internal/cmd/postgresflex/options"
"github.com/stackitcloud/stackit-cli/internal/cmd/postgresflex/user"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
"github.com/spf13/cobra"
)
func NewCmd(params *types.CmdParams) *cobra.Command {
cmd := &cobra.Command{
Use: "postgresflex",
Aliases: []string{"postgresqlflex"},
Short: "Provides functionality for PostgreSQL Flex",
Long: "Provides functionality for PostgreSQL Flex.",
Args: args.NoArgs,
Run: utils.CmdHelp,
}
addSubcommands(cmd, params)
return cmd
}
func addSubcommands(cmd *cobra.Command, params *types.CmdParams) {
cmd.AddCommand(instance.NewCmd(params))
cmd.AddCommand(user.NewCmd(params))
cmd.AddCommand(options.NewCmd(params))
cmd.AddCommand(backup.NewCmd(params))
}