diff --git a/main.go b/main.go index 7eafea024b1762beea9c5a3e8cdac8b4b01bdc67..b456edde6c97d11c779e2e8a57d47e2b3ea9179f 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,26 @@ +package main + +import ( + "github.com/nektro/go-util/util" + "github.com/spf13/cobra" +) + +// Version takes actual string in from build_all.sh +const Version = "vMASTER" + +func main() { + err := rootCmd.Execute() + util.DieOnError(err) +} + +var rootCmd = &cobra.Command{ + Use: "zigmod", + Short: "Zigmod is a package manager for Zig.", + Long: `Get documentation, binaries, and more from https://github.com/nektro/zigmod.`, + Run: func(cmd *cobra.Command, args []string) { + // Do Stuff Here + }, +} func assert(x bool, msg string) { util.DieOnError(util.Assert(x, msg))