ui

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert added in v0.8.0

func Alert(cfg *settings.Settings, text string) error

func IsEmpty

func IsEmpty(message string) func(s string) error

func RunFormFromSurvey

func RunFormFromSurvey(name string, s *survey.Survey, options *FormOptions) (map[string]interface{}, error)

func SurveyConfirmAfter

func SurveyConfirmAfter(s *survey.Survey) bool

func SurveyConfirmBefore

func SurveyConfirmBefore(s *survey.Survey) bool

func SurveyNeedsConfirmation

func SurveyNeedsConfirmation(s *survey.Survey) bool

Types

type FormOptions

type FormOptions struct {
	Theme      *huh.Theme
	Accessible bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳