Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// YesFlag enables automatic yes to prompts.
	YesFlag bool
)

Functions

func Ask

func Ask(msg, def string) string

Ask prompts for input with a default value.

func AskMode

func AskMode() string

AskMode prompts for boot/install mode selection.

func AskRequired

func AskRequired(msg string) string

AskRequired prompts for required input (cannot be empty).

func AskYesNo

func AskYesNo(msg string, def bool) bool

AskYesNo prompts for a yes/no answer with a default.

func Must

func Must(msg string, err error)

Must logs a fatal error if err is not nil.

Types

type MultiFlag

type MultiFlag []string

MultiFlag allows a flag to be specified multiple times.

func (*MultiFlag) Set

func (m *MultiFlag) Set(v string) error

func (*MultiFlag) String

func (m *MultiFlag) String() string

Jump to

Keyboard shortcuts

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