Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UsePrettyPrompts = runtime.GOOS != "windows"
Windows (powershell, cygwin, git bash) aren't propertly supported with pretty prompts (promptui or huh) So we'll use raw reads for these "dumb" terminals
Functions ¶
func PrintSeparateln ¶
Types ¶
type Input ¶ added in v2.0.20
type Input struct {
// contains filtered or unexported fields
}
type Option ¶ added in v2.0.20
type Option[T comparable] struct { Title string Value T }
func NewOption ¶ added in v2.0.20
func NewOption[T comparable](title string, value T) Option[T]
type Select ¶ added in v2.0.20
type Select[T comparable] struct { // contains filtered or unexported fields }
func NewSelect ¶ added in v2.0.20
func NewSelect[T comparable]() *Select[T]
Click to show internal directories.
Click to hide internal directories.