shared

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 6 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

Types

type CobraCompleter added in v0.6.1

type CobraCompleter func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

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() CobraCompleter

func (*Completer) WithHandlers added in v0.6.1

func (c *Completer) WithHandlers(handlers ...render.Handler) *Completer

func (*Completer) WithKeySuffix added in v0.6.2

func (c *Completer) WithKeySuffix(suffix string) *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