Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct { // Version is the semantic version of the build. // https://semver.org/ Version string `json:"version"` GitCommit string `json:"gitCommit"` BuildDate string `json:"buildDate"` }
type VersionOptions ¶
VersionOptions is a struct to support version command
func NewVersionOptions ¶
func NewVersionOptions(runr *state.Runr) *VersionOptions
NewOptions returns initialized Options
func (*VersionOptions) Complete ¶
func (o *VersionOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options
func (*VersionOptions) Validate ¶
func (o *VersionOptions) Validate() error
Validate validates the provided options
Click to show internal directories.
Click to hide internal directories.