interact

package
v0.0.0-...-ed256f0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Output io.Writer = os.Stdout
	Input  io.Reader = os.Stdin
)
View Source
var DefaultFormRunner = func(ctx context.Context, f *huh.Form) error {
	return f.RunWithContext(ctx)
}

Functions

func Confirm

func Confirm(ctx context.Context, fact func(c *huh.Confirm) *huh.Confirm) bool

func Error

func Error(s string)

func ErrorString

func ErrorString(s string) string

func ErrorStringf

func ErrorStringf(s string, args ...any) string

func Errorf

func Errorf(s string, args ...any)

func Info

func Info(s string)

func InfoString

func InfoString(s string) string

func InfoStringf

func InfoStringf(s string, args ...any) string

func Infof

func Infof(s string, args ...any)

func IsTerminal

func IsTerminal() bool

func NewHuhForm

func NewHuhForm(groups ...*huh.Group) *huh.Form

func NewHuhGroup

func NewHuhGroup(fields ...huh.Field) *huh.Group

func Success

func Success(s string)

func SuccessString

func SuccessString(s string) string

func SuccessStringf

func SuccessStringf(s string, args ...any) string

func Successf

func Successf(s string, args ...any)

func Warn

func Warn(s string)

func WarnString

func WarnString(s string) string

func WarnStringf

func WarnStringf(s string, args ...any) string

func Warnf

func Warnf(s string, args ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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