Documentation
¶
Overview ¶
Package constant holds values that are shared across the CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Version ¶
func Version() string
Version is the version ohmyssh reports.
There are three answers, in order of preference. What the build injected is the release version, and is what a binary from the Makefile has. Otherwise the module's own version is used, which is how a `go install ...@v1.2.3` build knows what it is — the reason a built-in constant was wrong, since that binary would have reported the version it was written with rather than the one it was built from. Anything else is a working copy, which has no released version and says so by reporting the development one; Go's own marker for that, "(devel)", is not a version worth showing anyone.
Types ¶
This section is empty.