version

package
v1.0.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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-beta5"

	// 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

func NewCmdVersion(name, fullName string) *cobra.Command

NewCmdVersion implements the version odo command

Types

type VersionOptions added in v0.0.18

type VersionOptions struct {
	// contains filtered or unexported fields
}

VersionOptions encapsulates all options for odo version command

func NewVersionOptions added in v0.0.18

func NewVersionOptions() *VersionOptions

NewVersionOptions creates a new VersionOptions instance

func (*VersionOptions) Complete added in v0.0.18

func (o *VersionOptions) Complete(name string, cmd *cobra.Command, args []string) error

Complete completes VersionOptions after they have been created

func (*VersionOptions) Run added in v0.0.18

func (o *VersionOptions) Run() (err error)

Run contains the logic for the odo service create command

func (*VersionOptions) Validate added in v0.0.18

func (o *VersionOptions) Validate() (err error)

Validate validates the VersionOptions based on completed values

Jump to

Keyboard shortcuts

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