cmd

package
v0.0.0-...-0a40d37 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(pr PasswordReader) (string, error)

Run reads string from stdin and returns that string

Types

type PasswordReader

type PasswordReader interface {
	ReadPassword() (string, error)
}

PasswordReader returns password read from a reader

type StdInPasswordReader

type StdInPasswordReader struct {
}

StdInPasswordReader default stdin password reader

func (StdInPasswordReader) ReadPassword

func (pr StdInPasswordReader) ReadPassword() (string, error)

ReadPassword reads password from stdin

Jump to

Keyboard shortcuts

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