Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add -v flag for version * Add a comment explaining how the version flag is set
- Loading branch information
1 parent
d2c89f3
commit 0e8c9d4
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
package version | ||
|
||
// Version number of the CLI | ||
import ( | ||
"fmt" | ||
|
||
"github.com/stripe/stripe-cli/pkg/ansi" | ||
) | ||
|
||
// Version of the CLI -- currently in beta | ||
// This is set to the actual version by GoReleaser, identify by the | ||
// git tag assigned to the release Versions built from source will | ||
// always show master. | ||
var Version = "master" | ||
|
||
var Template = fmt.Sprintf("stripe version %s %s\n", Version, ansi.Bold("(beta)")) |