diff --git a/glide.lock b/glide.lock index a4d8ff9..147ed9e 100644 --- a/glide.lock +++ b/glide.lock @@ -1,4 +1,6 @@ -hash: f20acabeeefc7aca1d734affdc78bd5c5562f23221d3e220740a88b89bbab663 -updated: 2016-11-24T18:16:11.117241701+01:00 -imports: [] +hash: 286cb8b51363e6246106ae7f010d08a680e675323e43dfa6c1f9988638ab612a +updated: 2016-11-24T18:24:43.661118911+01:00 +imports: +- name: github.com/spf13/cobra + version: 9495bc009a56819bdb0ddbc1a373e29c140bc674 testImports: [] diff --git a/glide.yaml b/glide.yaml index 71d18fd..f12caa7 100644 --- a/glide.yaml +++ b/glide.yaml @@ -5,3 +5,4 @@ owners: email: jip@dekker.li homepage: https://jip.dekker.li/ import: +- package: github.com/spf13/cobra diff --git a/main.go b/main.go index 7905807..52c0e57 100644 --- a/main.go +++ b/main.go @@ -1,5 +1,23 @@ package main -func main() { +import ( + "os" + "github.com/spf13/cobra" +) + +var rootCmd = &cobra.Command{ + Use: "chonozinc [description]", + Short: "Test and time your minizinc models!", + Long: `ChonoZinc is a small tool that wraps around mzn-fzn. It main purpose is to + test MiniZinc models using different solvers. It run your your model on all or + a sub-set of declared solvers and report on the statistics gathered. The data + gathered is saved in every stage.`, + Run: func(cmd *cobra.Command, args []string) {}, +} + +func main() { + if err := rootCmd.Execute(); err != nil { + os.Exit(-1) + } }