| ... | ... | @@ -1,3 +1,26 @@ |
| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | 	"github.com/nektro/go-util/util" |
| 5 | 	"github.com/spf13/cobra" |
| 6 | ) |
| 7 | |
| 8 | // Version takes actual string in from build_all.sh |
| 9 | const Version = "vMASTER" |
| 10 | |
| 11 | func main() { |
| 12 | 	err := rootCmd.Execute() |
| 13 | 	util.DieOnError(err) |
| 14 | } |
| 15 | |
| 16 | var 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 | } |
| 1 | 24 | |
| 2 | 25 | func assert(x bool, msg string) { |
| 3 | 26 | 	util.DieOnError(util.Assert(x, msg)) |