Documentation ¶
Index ¶
Constants ¶
View Source
const RecommendedCommandName = "version"
RecommendedCommandName is the recommended version command name
Variables ¶
View Source
var ( // VERSION is version number that will be displayed when running ./odo version VERSION = "v1.0.0-beta2" // GITCOMMIT is hash of the commit that will be displayed when running ./odo version // this will be overwritten when running build like this: go build -ldflags="-X github.com/openshift/odo/cmd.GITCOMMIT=$(GITCOMMIT)" // HEAD is default indicating that this was not set during build GITCOMMIT = "HEAD" )
Functions ¶
func GetLatestReleaseInfo ¶
func GetLatestReleaseInfo(info chan<- string)
GetLatestReleaseInfo Gets information about the latest release
func NewCmdVersion ¶
NewCmdVersion implements the version odo command
Types ¶
type VersionOptions ¶
type VersionOptions struct {
// contains filtered or unexported fields
}
VersionOptions encapsulates all options for odo version command
func NewVersionOptions ¶
func NewVersionOptions() *VersionOptions
NewVersionOptions creates a new VersionOptions instance
func (*VersionOptions) Run ¶
func (o *VersionOptions) Run() (err error)
Run contains the logic for the odo service create command
func (*VersionOptions) Validate ¶
func (o *VersionOptions) Validate() (err error)
Validate validates the VersionOptions based on completed values
Click to show internal directories.
Click to hide internal directories.