mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-01-13 21:31:03 +00:00
feat(cli): docs grouping and version
This commit is contained in:
parent
d8e39159f0
commit
847b696c74
4 changed files with 29 additions and 0 deletions
19
internal/version/version.go
Normal file
19
internal/version/version.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package version
|
||||
|
||||
var (
|
||||
// version is a semver version (https://semver.org).
|
||||
version = "0.0.1" // x-release-please-version
|
||||
|
||||
// versionPrerelease is a semver version pre-release identifier (https://semver.org).
|
||||
//
|
||||
// For final releases, we set this to an empty string.
|
||||
versionPrerelease = "dev"
|
||||
|
||||
// Version of the hcloud-upload-image CLI.
|
||||
Version = func() string {
|
||||
if versionPrerelease != "" {
|
||||
return version + "-" + versionPrerelease
|
||||
}
|
||||
return version
|
||||
}()
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue