Discover Packages
github.com/phpboyscout/go-tool-base
pkg
cmd
version
package
Version:
v1.10.5
Opens a new window with list of versions in this module.
Published: Apr 2, 2026
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Version Command
Displays version information and checks for available updates.
For detailed information on version output and update notifications, see the Built-in Commands Documentation .
Expand ▾
Collapse ▴
Documentation
¶
Package version provides the Cobra command for displaying the CLI's current
version, build date, and commit information.
NewCmdVersion creates the version command that displays build information.
type VersionInfo struct {
Version string `json:"version"`
Commit string `json:"commit,omitempty"`
Date string `json:"date,omitempty"`
Latest string `json:"latest,omitempty"`
Current bool `json:"current"`
}
VersionInfo holds version details for structured output.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.