prompt

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FilterFuzzy     = prompt.FilterFuzzy
	FilterContains  = prompt.FilterContains
	FilterHasPrefix = prompt.FilterHasPrefix
	FilterHasSuffix = prompt.FilterHasSuffix
)

Functions

This section is empty.

Types

type Document

type Document = prompt.Document

type Filter

type Filter = prompt.Filter

type Option

type Option func(*Prompt) error

func WithCheck

func WithCheck(v check.Check) Option

func WithCheckers

func WithCheckers(v ...check.Checker) Option

func WithCommands

func WithCommands(v command.Commands) Option

func WithContext

func WithContext(v context.Context) Option

func WithFileHistory

func WithFileHistory(v ...history.FileOption) Option

func WithFilter

func WithFilter(v Filter) Option

func WithFlair

func WithFlair(v flair.Flair) Option

func WithHistory

func WithHistory(v history.History) Option

func WithPrefix

func WithPrefix(v string) Option

func WithPromptOptions

func WithPromptOptions(v ...prompt.Option) Option

func WithTitle

func WithTitle(v string) Option

type Prompt

type Prompt struct {
	// contains filtered or unexported fields
}

func New

func New(l log.Logger, opts ...Option) (*Prompt, error)

func (*Prompt) Commands

func (s *Prompt) Commands() command.Commands

func (*Prompt) Run

func (s *Prompt) Run() error

type Suggest

type Suggest = prompt.Suggest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL