term

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AlwaysYes bool
)

Functions

func Color

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

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 Open

func Open(url string) error

func Print

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

Print prints message to stderr. The color placeholder "color|**|" will be expanded.

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 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