Documentation
¶
Overview ¶
Package version manages CLI version checking and display.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var GetReleaseNotesFn = func(ver string) (string, error) { release, _, err := newGithubClient().Repositories.GetReleaseByTag(context.Background(), "stripe", "stripe-cli", releaseTag(ver)) if err != nil { return "", err } return release.GetBody(), nil }
GetReleaseNotesFn fetches the GitHub release notes for the given version (with or without a leading "v"). Exposed as a var so callers outside this package can stub it out in tests.
var Template = fmt.Sprintf("stripe version %s\n", Version)
Template for the version string.
var Version = "master"
Version of the CLI. 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.
Functions ¶
func CheckLatestVersion ¶ added in v0.6.5
func CheckLatestVersion()
CheckLatestVersion tells the user when a newer release of the CLI is available.
Types ¶
This section is empty.