Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCmd ¶
NewRootCmd constructs the ski CLI with all implemented subcommands.
Types ¶
type MultiSelectRequest ¶
type MultiSelectRequest struct {
Title string
Description string
Options []string
MinSelected int
Height int
}
MultiSelectRequest describes a CLI multi-select prompt.
type Options ¶
type Options struct {
Getwd func() (string, error)
GetHomeDir func() (string, error)
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
IsTTY func() bool
PromptMultiSelect func(req MultiSelectRequest) ([]string, error)
PromptInput func(req TextPromptRequest) (string, error)
}
Options controls filesystem, IO, and TTY dependencies for the CLI.
Click to show internal directories.
Click to hide internal directories.