ui

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Green  = color.New(color.FgGreen).SprintFunc()
	Red    = color.New(color.FgRed).SprintFunc()
	Yellow = color.New(color.FgYellow).SprintFunc()
	Cyan   = color.New(color.FgCyan).SprintFunc()
	Bold   = color.New(color.Bold).SprintFunc()
	Faint  = color.New(color.Faint).SprintFunc()
)

Functions

func ReadPassphrase added in v0.6.0

func ReadPassphrase(prompt string, confirm bool) (string, error)

ReadPassphrase reads a passphrase from the controlling terminal without echo. When confirm is true it prompts a second time and verifies the two inputs match (used when setting a new passphrase).

func ReadPassphraseOptional added in v0.6.0

func ReadPassphraseOptional(prompt string) (string, error)

ReadPassphraseOptional reads a passphrase without echo. Empty input is returned as "" without error (caller treats as "skip"). Use for optional backup-passphrase prompts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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