-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
35 lines (29 loc) · 840 Bytes
/
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
package main
import (
"fmt"
"os"
"github.com/mirkobrombin/cpak/cmd"
"github.com/spf13/cobra"
)
var version = "0.0.1"
func main() {
rootCmd := &cobra.Command{
Use: "cpak",
Short: "package manager built around containers, Git, and OCI images",
Long: `cpak is a package manager built around containers, Git, and OCI images`,
}
rootCmd.AddCommand(cmd.NewInstallCommand())
rootCmd.AddCommand(cmd.NewRemoveCommand())
rootCmd.AddCommand(cmd.NewListCommand())
rootCmd.AddCommand(cmd.NewShellCommand())
rootCmd.AddCommand(cmd.NewRunCommand())
rootCmd.AddCommand(cmd.NewSpawnCommand())
rootCmd.AddCommand(cmd.NewServiceCommand())
rootCmd.AddCommand(cmd.NewStopCommand())
rootCmd.AddCommand(cmd.NewDedupCommand())
rootCmd.Version = version
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}