Discover Packages
github.com/frankbraun/codechain
util
terminal
package
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Mar 8, 2020
License: Unlicense
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package terminal provides utility function to read from terminals.
ErrAbort is returned if a user answers 'n' to Confirm.
Confirm asks the user to confirm the question with yes or no.
ReadLine reads a single line from r it and returns it (without trailing
newline).
ReadPassphrase reads a single line from fd without local echo and returns
it (without trailing newline). When confirm is true it reads a second line
and makes sure both passphrases match.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.