flags

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	*Flag
	Default bool
	// contains filtered or unexported fields
}

func (*Bool) Add

func (f *Bool) Add(cmds ...*cobra.Command)

func (*Bool) Get

func (f *Bool) Get(cmd *cobra.Command, nullable bool) *bool

type Flag

type Flag struct {
	Name        string
	ShortName   string
	Description string
	Required    bool
}

func (*Flag) Changed

func (f *Flag) Changed(cmd *cobra.Command) bool

type Int added in v0.4.0

type Int struct {
	*Flag
	Default int
	// contains filtered or unexported fields
}

func (*Int) Add added in v0.4.0

func (f *Int) Add(cmds ...*cobra.Command)

func (*Int) Get added in v0.4.0

func (f *Int) Get(cmd *cobra.Command, nullable bool) *int

type String

type String struct {
	*Flag
	Default string
	// contains filtered or unexported fields
}

func (*String) Add

func (f *String) Add(cmds ...*cobra.Command)

func (*String) Get

func (f *String) Get(cmd *cobra.Command, nullable bool) *string

Jump to

Keyboard shortcuts

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