Documentation
¶
Index ¶
- func ChooseMany(title string, isLastStep bool, options []string) ([]string, error)
- func ChooseOne(title string, isOptionalStep bool, isLastStep bool, options []string) (string, error)
- func List(items []string) error
- func New(items []string, delegate ItemDelegate, width, height int) listModel
- func Send(cmd *cobra.Command, args []string, ...) error
- type FilterFunc
- type FilterMatchesMsg
- type FilterState
- type Input
- type Item
- type ItemDelegate
- type KeyMap
- type ListModel
- type Rank
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChooseMany ¶
func New ¶
func New(items []string, delegate ItemDelegate, width, height int) listModel
Types ¶
type FilterFunc ¶
type FilterMatchesMsg ¶
type FilterMatchesMsg []filteredItem
type FilterState ¶
type FilterState int
const ( Unfiltered FilterState = iota Filtering FilterApplied )
func (FilterState) String ¶
func (f FilterState) String() string
type ItemDelegate ¶
type KeyMap ¶
type KeyMap struct {
NextPage key.Binding
PrevPage key.Binding
Filter key.Binding
ClearFilter key.Binding
CancelWhileFiltering key.Binding
AcceptWhileFiltering key.Binding
Quit key.Binding
}
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
Click to show internal directories.
Click to hide internal directories.