cmd

package
Version: v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package cmd provides functionally common to various argo CLIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsURL

func IsURL(u string) bool

IsURL returns whether or not a string is a URL

func MustIsDir

func MustIsDir(filePath string) bool

MustIsDir returns whether or not the given filePath is a directory. Exits if path does not exist

func NewVersionCmd

func NewVersionCmd(cliName string) *cobra.Command

NewVersionCmd returns a new `version` command to be used as a sub-command to root

func ParseLabels

func ParseLabels(labelSpec interface{}) (map[string]string, error)

ParseLabels turns a string representation of a label set into a map[string]string

func PrintVersion

func PrintVersion(cliName string, version wfv1.Version, short bool)

func SetGLogLevel

func SetGLogLevel(glogLevel int)

SetGLogLevel set the glog level for the k8s go-client this is taken from argoproj/pkg but uses v2 of klog here to be compatible with k8s clients v0.19.x and above

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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