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 Option ¶
type Option[T comparable] struct { Title string Value T }
func NewOption ¶
func NewOption[T comparable](title string, value T) Option[T]
type Select ¶
type Select[T comparable] struct { // contains filtered or unexported fields }
func NewSelect ¶
func NewSelect[T comparable]() *Select[T]
Click to show internal directories.
Click to hide internal directories.