cli

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCanceled = errors.New("Canceled.")
)

Functions

func Begin

func Begin(format string, a ...any)

func Error

func Error(format string, a ...any) error

func Finish

func Finish()

func Info

func Info(format string, a ...any)

func Input

func Input(question string) (string, error)

func InputAlphanum added in v0.5.0

func InputAlphanum(question string) (string, error)

Same as Input but only allows 'a'-'z', 'A'-'Z', '0'-'9', '_', '-' characters.

func IsInProgress

func IsInProgress() bool

func Select

func Select(msg string, displayOptions []string, options []string) (string, error)

func Success

func Success(format string, a ...any)

func Warn

func Warn(format string, a ...any)

func YesNo

func YesNo(question string, defaultValue bool) (yes bool, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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