cmd

package
v0.0.0-...-0762dd7 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RootCmd is the main command
	RootCmd = &cobra.Command{
		Use:   "openshift-github-hooks",
		Short: "Manages GitHub hooks for OpenShift BuildConfig triggers",
		Long:  `openshift-github-hooks helps you manage your GitHub hooks for OpenShift BuildConfig triggers`,
		Run:   RunHelp,
	}
)

Functions

func FullName

func FullName(cmd *cobra.Command) string

FullName returns the full name of the given command, which is the concatenation of all the names of all the parents commands example: "top-cmd sub-cmd sub-sub-cmd"

func GetenvWithDefault

func GetenvWithDefault(key, defaultValue string) string

GetenvWithDefault wraps os.Getenv but allows to return a default value

func RunHelp

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

RunHelp is a Command "Run" compatible function that just prints the command's help to stdout

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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