-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroot.go
More file actions
50 lines (41 loc) · 906 Bytes
/
root.go
File metadata and controls
50 lines (41 loc) · 906 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
40
41
42
43
44
45
46
47
48
49
50
package cmd
import (
"os"
"github.com/spf13/cobra"
)
// Flags
var deleteNamespace bool
var namespace string
var renkuRealm string
var secretKey string
var secretKeyUsername string
var secretName string
var userEmail string
var rootCmd = &cobra.Command{
Use: "rdu",
Short: "renku-dev-utils is a dev utility CLI",
RunE: runRoot,
}
func Execute() error {
return rootCmd.Execute()
}
func runRoot(cmd *cobra.Command, args []string) error {
return cmd.Help()
}
func init() {
rootCmd.AddCommand(cleanupDeploymentCmd)
rootCmd.AddCommand(copyKeycloakAdminPasswordCmd)
rootCmd.AddCommand(loginCmd)
rootCmd.AddCommand(logoutCmd)
rootCmd.AddCommand(makeMeAdminCmd)
rootCmd.AddCommand(namespaceCmd)
rootCmd.AddCommand(openDeploymentCmd)
rootCmd.AddCommand(updateGlobalImagesCmd)
rootCmd.AddCommand(versionCmd)
}
func Main() {
if err := Execute(); err != nil {
os.Exit(2)
}
os.Exit(0)
}