shared

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolFlag

func BoolFlag(flags *pflag.FlagSet, name string) bool

func BoolWithInverse added in v0.6.2

func BoolWithInverse(cmd *cobra.Command, name string, value bool, usage, negativeUsage string)

func BoolWithInverseValue added in v0.6.2

func BoolWithInverseValue(flags *pflag.FlagSet, name string) bool

func StringFlag

func StringFlag(flags *pflag.FlagSet, name string) string

func StringSliceFlag added in v0.8.0

func StringSliceFlag(flags *pflag.FlagSet, name string) []string

Types

type Completer added in v0.6.1

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

func NewCompleter added in v0.6.1

func NewCompleter() *Completer

func (*Completer) Get added in v0.6.1

func (c *Completer) Get() cobra.CompletionFunc

func (*Completer) WithKeySuffix added in v0.6.2

func (c *Completer) WithKeySuffix(suffix string) *Completer

func (*Completer) WithSelectors added in v0.10.0

func (c *Completer) WithSelectors(selectors ...ast.Selector) *Completer

func (*Completer) WithSettings added in v0.6.1

func (c *Completer) WithSettings(options ...render.SettingsOption) *Completer

func (*Completer) WithSuffixIsLiteral added in v0.6.2

func (c *Completer) WithSuffixIsLiteral(b bool) *Completer

Jump to

Keyboard shortcuts

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