speakeasy

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ask

func Ask(prompt string) (password string, err error)

Ask the user to enter a password with input hidden. prompt is a string to display before the user's input. Returns the provided password, or an error if the command failed.

func FAsk

func FAsk(wr io.Writer, prompt string) (password string, err error)

FAsk is the same as Ask, except it is possible to specify the file to write the prompt to. If 'nil' is passed as the writer, no prompt will be written.

Types

This section is empty.

Jump to

Keyboard shortcuts

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