Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseIndexSelection ¶
func ParseIndexSelection[DataType any](selectionString string, options []SelectionOption[DataType]) ([]*DataType, error)
Parse a comma-separated list of indices to select in a multi-index operation
func ParseOptionIDs ¶
func ParseOptionIDs[DataType any](selectionString string, options []SelectionOption[DataType]) ([]*DataType, error)
Parse a comma-separated list of option IDs to select in a multi-index operation
Types ¶
type SelectionOption ¶
type SelectionOption[DataType any] struct { // The underlying element this option represents Element *DataType // The human-readable ID of the option, used for non-interactive selection ID string // The text to display for this option when listing the available options Display string }
An option that can be selected from a list of choices in the CLI
Click to show internal directories.
Click to hide internal directories.