-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy pathcmd.go
More file actions
33 lines (27 loc) · 858 Bytes
/
cmd.go
File metadata and controls
33 lines (27 loc) · 858 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
29
30
31
32
33
package promote
import (
"fmt"
"github.com/openshift/osdctl/cmd/promote/dynatrace"
"github.com/openshift/osdctl/cmd/promote/managedscripts"
"github.com/openshift/osdctl/cmd/promote/saas"
"github.com/spf13/cobra"
)
// NewCmdPromote implements the promote command to promote services/operators
func NewCmdPromote() *cobra.Command {
promoteCmd := &cobra.Command{
Use: "promote",
Short: "Utilities to promote services/operators",
Args: cobra.NoArgs,
DisableAutoGenTag: true,
}
promoteCmd.AddCommand(saas.NewCmdSaas())
promoteCmd.AddCommand(dynatrace.NewCmdDynatrace())
promoteCmd.AddCommand(managedscripts.NewCmdManagedScripts())
return promoteCmd
}
func help(cmd *cobra.Command, _ []string) {
err := cmd.Help()
if err != nil {
fmt.Println("Error while calling cmd.Help(): ", err.Error())
}
}