version

package
v1.62.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Version of the hcloud CLI.
	Version = func() string {
		if versionPrerelease != "" {
			return version + "-" + versionPrerelease
		}
		return version
	}()

	// Commit is the latest full commit hash during build time
	Commit = func() string {
		if commit != "" {
			return commit
		}
		return getSettingsValue("vcs.revision", "unknown")
	}()

	// CommitDate is the timestamp of the latest commit during build time in RFC3339
	CommitDate = func() string {
		if commitDate != "" {
			return commitDate
		}
		return getSettingsValue("vcs.time", "unknown")
	}()

	// Modified specifies whether the git worktree was dirty during build time
	Modified = func() bool {
		if modified != "" {
			return modified == "true"
		}
		return getSettingsValue("vcs.modified", "false") == "true"
	}()
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL