shared

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 5 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 Setup

func Setup(flags *pflag.FlagSet) (*ast.Document, *render.Settings, error)

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) WithSettings added in v0.6.1

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

Jump to

Keyboard shortcuts

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