nameflag

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NameFlagSet

type NameFlagSet struct {
	// contains filtered or unexported fields
}

it is not thread-safe.

func NewNameFlagSet

func NewNameFlagSet() *NameFlagSet

func (*NameFlagSet) AddFlagSet

func (nfs *NameFlagSet) AddFlagSet(name string, fs *pflag.FlagSet) error

func (*NameFlagSet) AddNameFlagSetToCmd

func (nfs *NameFlagSet) AddNameFlagSetToCmd(cmd *cobra.Command)

func (*NameFlagSet) SetUsageAndHelpFunc

func (nfs *NameFlagSet) SetUsageAndHelpFunc(cmd *cobra.Command) error

Jump to

Keyboard shortcuts

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