Documentation ¶ Index ¶ type Choosable type Fetcher func (f *Fetcher[T]) Choices(ctx context.Context, drv *ui.Driver, flag string, creatable bool) ([]T, error) type Selector func (s *Selector[T]) Choice(ctx context.Context, drv *ui.Driver) (*T, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Choosable ¶ added in v0.0.39 type Choosable = models.Choosable type Fetcher ¶ added in v0.0.39 type Fetcher[T Choosable] struct { FetchFn func() ([]T, error) } func (*Fetcher[T]) Choices ¶ added in v0.0.39 func (f *Fetcher[T]) Choices(ctx context.Context, drv *ui.Driver, flag string, creatable bool) ([]T, error) type Selector ¶ added in v0.0.39 type Selector[T Choosable] struct { Prompt string Flag string Creatable bool Choices []T Fetcher *Fetcher[T] } func (*Selector[T]) Choice ¶ added in v0.0.39 func (s *Selector[T]) Choice(ctx context.Context, drv *ui.Driver) (*T, error) Source Files ¶ View all Source files fetcher.go selector.go Directories ¶ Show internal Expand all Path Synopsis models Click to show internal directories. Click to hide internal directories.