prompt

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(msg string, defaultTrue bool) bool

Bool prompts for input and returns true if the trimmed input was "y"

func Editor

func Editor(p string) error

Editor opens the file at p using a text editor

func GivenOrPromptConfirmedPassword added in v0.0.3

func GivenOrPromptConfirmedPassword(passwordFile string) (string, error)

func GivenOrPromptName added in v0.0.3

func GivenOrPromptName(namePrefix string) string

func GivenOrPromptPassword added in v0.0.3

func GivenOrPromptPassword(passwordFile string) (string, error)

func Password

func Password(msg string) string

Password prompts the user to enter a password without echoing their input

func PromptName added in v0.0.3

func PromptName() string

func TrimmedLine

func TrimmedLine(msg string) string

TrimmedLine prompts for input and returns the first line of input as a trimmed string

Types

This section is empty.

Jump to

Keyboard shortcuts

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