-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.go
37 lines (30 loc) · 1.08 KB
/
ui.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package log
// Logger also implements the interface cli.Ui from github.com/mitchellh/cli to
// print logs using the text formatter
// Ask asks the user for input using the given query. This UI do not ask
// questions so it implements nothing.
func (logger *Logger) Ask(query string) (string, error) {
return "", nil
}
// AskSecret asks the user for input using the given query, but does not echo
// the keystrokes to the terminal. This UI do not ask questions so it implements
// nothing.
func (logger *Logger) AskSecret(query string) (string, error) {
return "", nil
}
// Error is used for any error messages that might appear on standard error.
func (logger *Logger) Error(message string) {
logger.error(message)
}
// Info is called for information output.
func (logger *Logger) Info(message string) {
logger.info(message)
}
// Output is called for normal standard output.
func (logger *Logger) Output(message string) {
logger.Print(message)
}
// Warn is used for any warning messages that might appear on standard error.
func (logger *Logger) Warn(message string) {
logger.warn(message)
}