package
0.0.0-20221009095420-d0e6ce96ca81
Repository: https://github.com/cnlubo/myssh.git
Documentation: pkg.go.dev
# Functions
Choices converts a slice of anything to a slice of choices.
DefaultFinalChoiceStyle is the default style for final choices.
No description provided by the author
No description provided by the author
FilterContainsCaseInsensitive returns true if the string representation of the choice contains the filter string without regard for capitalization.
FilterContainsCaseSensitive returns true if the string representation of the choice contains the filter string respecting capitalization.
New creates a new selection prompt.
NewChoice creates a new choice for a given input and chooses a suitable string representation.
NewDefaultKeyMap returns a KeyMap with sensible default key mappings that can also be used as a starting point for customization.
NewModel returns a new selection prompt model for the provided choices.
# Constants
No description provided by the author
DefaultFilterPlaceholder is printed by default when no filter text was entered yet.
DefaultFilterPrompt is the default prompt for the filter input when filtering is enabled.
DefaultResultTemplate defines the default appearance with which the finale result of the selection is presented.
DefaultTemplate defines the default appearance of the selection and can be copied as a starting point for a custom template.{{ .HeadPrompt | bold | cyan }}.