utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStdInPassword

func GetStdInPassword() (string, bool)

Types

type Prompter

type Prompter interface {
	Select(prompt string, options []string) (string, error)
	InputString(prompt, defValue, help string, validator func(string) error) (string, error)
	InputInteger(prompt, defValue, help string, validator func(int64) error) (int64, error)
	Confirm(prompt string) (bool, error)
	InputHiddenString(prompt, help string, validator func(string) error) (string, error)
}

Prompter is an interface for prompting the user for input.

func NewPrompter

func NewPrompter() Prompter

NewPrompter returns a new Prompter instance.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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