-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathmain.go
More file actions
39 lines (33 loc) · 878 Bytes
/
main.go
File metadata and controls
39 lines (33 loc) · 878 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
34
35
36
37
38
39
package main
import (
"log"
"github.com/openshift/backplane-tools/cmd/cleanup"
"github.com/openshift/backplane-tools/cmd/install"
"github.com/openshift/backplane-tools/cmd/list"
"github.com/openshift/backplane-tools/cmd/remove"
"github.com/openshift/backplane-tools/cmd/upgrade"
"github.com/spf13/cobra"
)
var cmd = cobra.Command{
Use: "backplane-tools",
Short: "An OpenShift tool manager",
Long: "This applications manages the tools needed to interact with OpenShift clusters",
RunE: help,
}
func help(cmd *cobra.Command, _ []string) error {
return cmd.Help()
}
// Add subcommands
func init() {
cmd.AddCommand(install.Cmd())
cmd.AddCommand(list.Cmd())
cmd.AddCommand(remove.Cmd())
cmd.AddCommand(upgrade.Cmd())
cmd.AddCommand(cleanup.Cmd())
}
func main() {
err := cmd.Execute()
if err != nil {
log.Fatalf("Error executing command: %v", err)
}
}