cmd

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// VERSION  is version number that will be displayed when running ./odo version
	VERSION = "v0.0.11"

	// GITCOMMIT is hash of the commit that wil be displayed when running ./odo version
	// this will be overwritten when running  build like this: go build -ldflags="-X github.com/redhat-developer/odo/cmd.GITCOMMIT=$(GITCOMMIT)"
	// HEAD is default indicating that this was not set during build
	GITCOMMIT = "HEAD"
)
View Source
var (
	GlobalConnectionCheck bool
)

Global variables

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Generate

func Generate(cmd *cobra.Command, args []string) error

Generate the appropriate autocompletion file

func GenerateCLIReference added in v0.0.6

func GenerateCLIReference() string

Generates and returns a markdown-formatted CLI reference page for Odo

func GenerateCLIStructure added in v0.0.6

func GenerateCLIStructure() string

func TerminalGenerate added in v0.0.8

func TerminalGenerate(out io.Writer, cmd *cobra.Command, args []string) error

Generates the PS1 output for Odo terminal support (appends to current PS1 environment variable)

Types

This section is empty.

Jump to

Keyboard shortcuts

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