From 865feab433b6368486332d7b69969737f7230904 Mon Sep 17 00:00:00 2001 From: Meghan Date: Mon, 9 Nov 2020 11:55:29 -0800 Subject: [PATCH] add main --- main.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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)) -- 2.54.0