-
-
Notifications
You must be signed in to change notification settings - Fork 289
/
main.go
42 lines (34 loc) · 1.02 KB
/
main.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
38
39
40
41
42
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package main
import (
"os"
"github.com/alexellis/arkade/cmd"
"github.com/alexellis/arkade/cmd/chart"
"github.com/alexellis/arkade/cmd/oci"
"github.com/alexellis/arkade/cmd/system"
"github.com/spf13/cobra"
)
func main() {
printarkadeASCIIArt := cmd.PrintArkadeASCIIArt
var rootCmd = &cobra.Command{
Use: "arkade",
Run: func(cmd *cobra.Command, args []string) {
printarkadeASCIIArt()
cmd.Help()
},
}
rootCmd.AddCommand(cmd.MakeInstall())
rootCmd.AddCommand(cmd.MakeVersion())
rootCmd.AddCommand(cmd.MakeInfo())
rootCmd.AddCommand(cmd.MakeUpdate())
rootCmd.AddCommand(cmd.MakeGet())
rootCmd.AddCommand(cmd.MakeUninstall())
rootCmd.AddCommand(cmd.MakeShellCompletion())
rootCmd.AddCommand(chart.MakeChart())
rootCmd.AddCommand(system.MakeSystem())
rootCmd.AddCommand(oci.MakeOci())
if err := rootCmd.Execute(); err != nil {
os.Exit(1)
}
}