term

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AlwaysYes bool
)

Functions

func Confirm

func Confirm(msg string, args ...any) bool

func ConfirmExit

func ConfirmExit(msg string, args ...any)

func Edit

func Edit(editor, path string) error

func EditContent

func EditContent(editor, content string, name string) (string, error)

func EditItems added in v0.2.0

func EditItems[T any](editor string, items []*T, getKey func(*T) string) ([]*T, error)

func FuzzySearch

func FuzzySearch(name string, items []string) (int, error)

func InputErase added in v0.6.0

func InputErase(msg string, args ...any) string

func InputNewPassword added in v0.6.0

func InputNewPassword(msg string, args ...any) (string, error)

func InputPassword added in v0.6.0

func InputPassword(msg string, args ...any) (string, error)

func Open

func Open(url string) error

func PrintCmd added in v0.2.0

func PrintCmd(cmd string, args ...any)

func PrintError

func PrintError(err error)

func PrintOperation

func PrintOperation(msg string, args ...any)

func Printf added in v0.5.1

func Printf(msg string, args ...any)

func Println added in v0.5.1

func Println(args ...any)

func Style added in v0.5.1

func Style(a any, style string) string

func Warn

func Warn(msg 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