Documentation
¶
Index ¶
- type Console
- func (c *Console) Debug(msg ...interface{})
- func (c *Console) Error(msg ...interface{})
- func (c *Console) Info(msg ...interface{})
- func (c *Console) Print(msg ...interface{})
- func (c *Console) PrintTable(content [][]string) error
- func (c *Console) Read() string
- func (c *Console) ReadPassword(prompt string) (string, error)
- func (c *Console) Warn(msg ...interface{})
- func (c *Console) Write(data []byte) (int, error)
- type MockConsole
- func (c *MockConsole) Debug(msg ...interface{})
- func (c *MockConsole) Error(msg ...interface{})
- func (c *MockConsole) Info(msg ...interface{})
- func (c *MockConsole) PrintTable(table [][]string) error
- func (c *MockConsole) Read() string
- func (c *MockConsole) ReadPassword(prompt string) (string, error)
- func (c *MockConsole) Warn(msg ...interface{})
- func (c *MockConsole) Write(data []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
Console
func NewConsole ¶
NewConsole creates a new console
func (*Console) PrintTable ¶
PrintTable prints a table
type MockConsole ¶
func (*MockConsole) Debug ¶
func (c *MockConsole) Debug(msg ...interface{})
Debug prints a debug message
func (*MockConsole) Error ¶
func (c *MockConsole) Error(msg ...interface{})
Error prints an error message
func (*MockConsole) Info ¶
func (c *MockConsole) Info(msg ...interface{})
Info prints a info message
func (*MockConsole) PrintTable ¶
func (c *MockConsole) PrintTable(table [][]string) error
PrintTable is a mock implementation of the PrintTable method
func (*MockConsole) ReadPassword ¶
func (c *MockConsole) ReadPassword(prompt string) (string, error)
ReadPassword read password from console reader
func (*MockConsole) Warn ¶
func (c *MockConsole) Warn(msg ...interface{})
Warn prints a warning message
Click to show internal directories.
Click to hide internal directories.