Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TTY ¶
type TTY struct {
// contains filtered or unexported fields
}
TTY represents unixish stdio, possibly with /dev/tty used to read user input
func (*TTY) DetermineWidth ¶
func (*TTY) ReadPassword ¶
func (*TTY) SetDefaultPassword ¶
type Terminal ¶
type Terminal interface { Output() io.Writer Error() io.Writer SetDefaultPassword(password string) ReadPassword(prompt string) string DetermineWidth() int }
Terminal handles interacting with the user in Certigo
type TestTerminal ¶
TestTerminal just collects input into buffers That can be used to check output in tests
func (TestTerminal) DetermineWidth ¶
func (t TestTerminal) DetermineWidth() int
func (*TestTerminal) Error ¶
func (t *TestTerminal) Error() io.Writer
func (*TestTerminal) Output ¶
func (t *TestTerminal) Output() io.Writer
func (*TestTerminal) ReadPassword ¶
func (t *TestTerminal) ReadPassword(prompt string) string
func (*TestTerminal) SetDefaultPassword ¶
func (t *TestTerminal) SetDefaultPassword(password string)
Click to show internal directories.
Click to hide internal directories.