prompt

package
v0.0.0-...-798d316 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfirmation

func GetConfirmation(label string, def bool) bool

func GetInput

func GetInput(label string, validateFunc func(input string) error) string

func GetInputWithDefault

func GetInputWithDefault(label string, def string, validateFunc func(input string) error) string

func PrintTableProjects

func PrintTableProjects(projects []model.Project)

func PrintTableTags

func PrintTableTags(tags []model.Tag)

func SelectProject

func SelectProject(label string, projects []model.Project) *model.Project

func SelectProjectWithActive

func SelectProjectWithActive(label string, projects []model.Project) *model.Project

func SelectTag

func SelectTag(label string, tags []model.Tag) *model.Tag

func SelectTagWithAddOption

func SelectTagWithAddOption(label string, tags []model.Tag) *model.Tag

Types

This section is empty.

Jump to

Keyboard shortcuts

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