parse

package
v3.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseNamespaceFromArgs

func ParseNamespaceFromArgs(args []string) *string

Types

type FlagCompletion

type FlagCompletion int
const (
	FlagLabel FlagCompletion = iota
	FlagFieldSelector
	FlagNamespace
	FlagNone
	FlagUnmanaged
)

func CheckFlagManaged

func CheckFlagManaged(args []string) FlagCompletion

func ParseFlagAndResources

func ParseFlagAndResources(cmdVerb string, cmdArgs []string) (resourceType resources.ResourceType, flagCompletion FlagCompletion, err error)

func (FlagCompletion) String

func (f FlagCompletion) String() string

type UnmanagedFlagError

type UnmanagedFlagError string

func (UnmanagedFlagError) Error

func (u UnmanagedFlagError) Error() string

Jump to

Keyboard shortcuts

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