feat: added version and makefile

makefile allows for package variables to be defined
This commit is contained in:
2021-07-13 23:47:47 +01:00
parent a7d748cb1f
commit a2a836c2a9
3 changed files with 10 additions and 1 deletions

View File

@ -8,11 +8,14 @@ import (
"github.com/urfave/cli/v2"
)
var Version string
var Commit string
func main() {
app := &cli.App{
Name: "abra",
Usage: "The cooperative cloud utility belt 🎩🐇",
Version: "TBA",
Version: fmt.Sprintf("%s-%s", Version, Commit[:7]),
Commands: []*cli.Command{
{
Name: "server",