output

package
v0.1.0-preview.9.rc Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(prompt string) (bool, error)

Confirm prompts the user to confirm an action with a yes/no question.

func InputHiddenString

func InputHiddenString(prompt, help string, validator func(string) error) (string, error)

InputHiddenString prompts the user to input a string. The input is hidden from the user. The validator is used to validate the input. The help text is displayed to the user when they ask for help. There is no default value.

func InputString

func InputString(prompt, help, defaultValue string, validator func(string) error) (string, error)

InputString prompts the user to input a string. The input is visible to the user. The validator is used to validate the input. The help text is displayed to the user when they ask for help. If defaultValue is not empty, it will be used as the default value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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