flags

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDisableResourceCleanupFlag

func AddDisableResourceCleanupFlag(cmd *cobra.Command, disable *bool)

func AddKubeContextFlag

func AddKubeContextFlag(cmd *cobra.Command, kubeContext *string)

func AddNamespaceFlag

func AddNamespaceFlag(cmd *cobra.Command, namespace *string)

func AddPathFlag

func AddPathFlag(cmd *cobra.Command, path *string)

func AddWorkspaceFlag added in v0.0.4

func AddWorkspaceFlag(cmd *cobra.Command, workspace *string)

func IsFlagPassed added in v0.0.3

func IsFlagPassed(fs *pflag.FlagSet, name string) (found bool)

Check if user has passed a flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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