prompt

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(msg string) (bool, error)

Confirm prompts the user for a yes/no confirmation and returns true for yes.

func IsInteractive

func IsInteractive() bool

IsInteractive returns true if the standard input is a terminal

func Passphrase

func Passphrase(prompt string) (string, error)

Passphrase prompts the user for a passphrase with hidden input

func PassphraseConfirm

func PassphraseConfirm(prompt, confirmPrompt string) (string, error)

PassphraseConfirm prompts for a passphrase and its confirmation

Types

This section is empty.

Jump to

Keyboard shortcuts

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