-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathske.go
37 lines (33 loc) · 1.15 KB
/
ske.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
35
36
37
package ske
import (
"github.com/stackitcloud/stackit-cli/internal/cmd/ske/cluster"
"github.com/stackitcloud/stackit-cli/internal/cmd/ske/credentials"
"github.com/stackitcloud/stackit-cli/internal/cmd/ske/describe"
"github.com/stackitcloud/stackit-cli/internal/cmd/ske/disable"
"github.com/stackitcloud/stackit-cli/internal/cmd/ske/enable"
"github.com/stackitcloud/stackit-cli/internal/cmd/ske/kubeconfig"
"github.com/stackitcloud/stackit-cli/internal/cmd/ske/options"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
"github.com/spf13/cobra"
)
func NewCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "ske",
Short: "Provides functionality for SKE",
Long: "Provides functionality for STACKIT Kubernetes Engine (SKE).",
Args: args.NoArgs,
Run: utils.CmdHelp,
}
addSubcommands(cmd)
return cmd
}
func addSubcommands(cmd *cobra.Command) {
cmd.AddCommand(describe.NewCmd())
cmd.AddCommand(enable.NewCmd())
cmd.AddCommand(kubeconfig.NewCmd())
cmd.AddCommand(disable.NewCmd())
cmd.AddCommand(cluster.NewCmd())
cmd.AddCommand(credentials.NewCmd())
cmd.AddCommand(options.NewCmd())
}