prompt

package
v0.1.30995 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskUserToConfirm

func AskUserToConfirm(message string) bool

AskUserToConfirm will prompt the user to confirm with the provided message.

func AskUserToConfirmWithDefault added in v0.1.28363

func AskUserToConfirmWithDefault(message string, defaultValue bool) bool

func ReadSecretStringFromUser

func ReadSecretStringFromUser(message string) (string, error)

ReadSecretStringFromUser can be used to read a value from the user by masking their input. It's useful for token input in our case.

func ReadStringFromUser

func ReadStringFromUser(message string, defaultValue string) string

ReadStringFromUser can be used to read any value from the user or the defaultValue when provided.

Types

This section is empty.

Jump to

Keyboard shortcuts

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