Documentation ¶
Index ¶
- func FlattenPkgs(found map[string][]db.Package, verb string, t translate.Translator) []db.Package
- func PkgPrompt(options []db.Package, verb string, t translate.Translator) ([]db.Package, error)
- func PromptViewScript(script, name, style string, t translate.Translator) error
- func ShowScript(path, name, style string) error
- func YesNoPrompt(msg string, def bool, t translate.Translator) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlattenPkgs ¶
FlattenPkgs attempts to flatten the a map of slices of packages into a single slice of packages by prompting the user if multiple packages match.
func PkgPrompt ¶
PkgPrompt asks the user to choose between multiple packages. The user may choose multiple packages.
func PromptViewScript ¶
func PromptViewScript(script, name, style string, t translate.Translator) error
PromptViewScript asks the user if they'd like to see a script, shows it if they answer yes, then asks if they'd still like to continue, and exits if they answer no.
func ShowScript ¶
ShowScript uses the built-in pager to display a script at a given path, in the given syntax highlighting style.
func YesNoPrompt ¶
YesNoPrompt asks the user a yes or no question, using def as the default answer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.