authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-09 11:55:29 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-09 11:55:29 -08:00
log865feab433b6368486332d7b69969737f7230904
tree58bff7fd93ae0de652a89a251f72c14ec84598af
parenta1b3e7f6b86413e303b69de73944c3a989c55040

add main


1 files changed, 23 insertions(+), 0 deletions(-)

main.go+23
...@@ -1,3 +1,26 @@...@@ -1,3 +1,26 @@
1package main
2
3import (
4 "github.com/nektro/go-util/util"
5 "github.com/spf13/cobra"
6)
7
8// Version takes actual string in from build_all.sh
9const Version = "vMASTER"
10
11func main() {
12 err := rootCmd.Execute()
13 util.DieOnError(err)
14}
15
16var rootCmd = &cobra.Command{
17 Use: "zigmod",
18 Short: "Zigmod is a package manager for Zig.",
19 Long: `Get documentation, binaries, and more from https://github.com/nektro/zigmod.`,
20 Run: func(cmd *cobra.Command, args []string) {
21 // Do Stuff Here
22 },
23}
124
2func assert(x bool, msg string) {25func assert(x bool, msg string) {
3 util.DieOnError(util.Assert(x, msg))26 util.DieOnError(util.Assert(x, msg))