forked from stackitcloud/stackit-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintake.go
More file actions
28 lines (25 loc) · 845 Bytes
/
intake.go
File metadata and controls
28 lines (25 loc) · 845 Bytes
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
package intake
import (
"github.com/spf13/cobra"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/intake/runner"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/intake/user"
"github.com/stackitcloud/stackit-cli/internal/cmd/params"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
)
// NewCmd creates the 'stackit intake' command
func NewCmd(params *params.CmdParams) *cobra.Command {
cmd := &cobra.Command{
Use: "intake",
Short: "Provides functionality for intake",
Long: "Provides functionality for intake.",
Args: args.NoArgs,
Run: utils.CmdHelp,
}
addSubcommands(cmd, params)
return cmd
}
func addSubcommands(cmd *cobra.Command, params *params.CmdParams) {
cmd.AddCommand(runner.NewCmd(params))
cmd.AddCommand(user.NewCmd(params))
}