Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Make version exported for Go builds
Browse files Browse the repository at this point in the history
Signed-off-by: Jason McCallister <jason@craftcms.com>
  • Loading branch information
jasonmccallister committed Mar 25, 2020
1 parent da53a63 commit 2f44271
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import (
"github.com/craftcms/nitro/command"
)

var (
Version = "1.0.0"
)

func main() {
ui := cli.ColoredUi{
ErrorColor: cli.UiColorRed,
Expand All @@ -23,7 +27,7 @@ func main() {

r := command.NewMultipassRunner("multipass")

c := cli.NewCLI("nitro", "1.0.0")
c := cli.NewCLI("nitro", Version)
c.Args = os.Args[1:]

baseCommand := &command.CoreCommand{
Expand Down

0 comments on commit 2f44271

Please # to comment.