Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
Name string
Label string
Description string
Value *bool
Required bool
// contains filtered or unexported fields
}
func (*Bool) IsRequired ¶
func (*Bool) Prompt ¶
func (f *Bool) Prompt() prompt.PromptInput
func (*Bool) UpdateOptions ¶
func (f *Bool) UpdateOptions(options interface{})
type FlagSchema ¶
type Flags ¶
type Flags struct {
FlagSet *pflag.FlagSet
PromptDescription string
// contains filtered or unexported fields
}
func (*Flags) AddFlagOption ¶
func (*Flags) AssignValues ¶
func (*Flags) GetInputs ¶
func (f *Flags) GetInputs() []prompt.PromptInput
func (*Flags) Register ¶
func (f *Flags) Register(s *FlagsSchema)
type FlagsSchema ¶
type FlagsSchema []FlagSchema
type Int64 ¶
type Int64 struct {
Name string
Description string
Value *int64
Required bool
Label string
// contains filtered or unexported fields
}
func (*Int64) IsRequired ¶
func (*Int64) Prompt ¶
func (f *Int64) Prompt() prompt.PromptInput
func (*Int64) UpdateOptions ¶
func (f *Int64) UpdateOptions(options interface{})
type String ¶
type String struct {
Name string
CustomFlagName string
Label string
Description string
Value *string
Options []string
Required bool
// contains filtered or unexported fields
}
func (*String) IsRequired ¶
func (*String) Prompt ¶
func (f *String) Prompt() prompt.PromptInput
func (*String) UpdateOptions ¶
func (f *String) UpdateOptions(options interface{})
type StringSlice ¶
type StringSlice struct {
Name string
Label string
Description string
Value *[]string
Required bool
// contains filtered or unexported fields
}
func (*StringSlice) GetName ¶
func (f *StringSlice) GetName() string
func (*StringSlice) GetValue ¶
func (f *StringSlice) GetValue() interface{}
func (*StringSlice) IsRequired ¶
func (f *StringSlice) IsRequired() bool
func (*StringSlice) Prompt ¶
func (f *StringSlice) Prompt() prompt.PromptInput
func (*StringSlice) Register ¶
func (f *StringSlice) Register(s *pflag.FlagSet)
func (*StringSlice) UpdateOptions ¶
func (f *StringSlice) UpdateOptions(options interface{})
Click to show internal directories.
Click to hide internal directories.