Skip to content

Commit

Permalink
Set a version number to CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
minamijoyo committed Mar 11, 2018
1 parent d358d02 commit 0a7269f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import (
"github.com/mitchellh/panicwrap"
)

// Version is a version number.
var version = "0.0.1-dev"

// UI is a user interface which is a global variable for mocking.
var UI cli.Ui

Expand Down Expand Up @@ -63,6 +66,7 @@ func wrappedMain() int {

c := &cli.CLI{
Name: "tfschema",
Version: version,
Args: args,
Commands: commands,
HelpWriter: os.Stdout,
Expand Down

0 comments on commit 0a7269f

Please sign in to comment.