aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2017-08-19 17:45:56 +0200
committerStefan Majewsky <majewsky@gmx.net>2017-08-19 17:45:56 +0200
commitdbb1840daf3485edb0e66722fc7e3a608028b59a (patch)
tree23a8d0953c0d781bf05cd846deac5cbd86c7f54b
parent888095449e80b33c1d5925e3164956567e43e86e (diff)
downloadgofu-dbb1840daf3485edb0e66722fc7e3a608028b59a.tar.gz
fix formatting errors for stderr messages
-rw-r--r--pkg/cli/interface.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/cli/interface.go b/pkg/cli/interface.go
index 4d0e196..a88212b 100644
--- a/pkg/cli/interface.go
+++ b/pkg/cli/interface.go
@@ -148,17 +148,17 @@ func (i *Implementation) ShowResultsSorted(strs []string) {
//ShowProgress displays a progress message on stderr.
func (i *Implementation) ShowProgress(str string) {
- i.tui.Print(i.stderr, fmt.Sprintf("\x1B[0;1;36m>>\x1B[0;36m %s\x1B[0m", strings.TrimSpace(str)))
+ i.tui.Print(i.stderr, fmt.Sprintf("\x1B[0;1;36m>>\x1B[0;36m %s\x1B[0m\n", strings.TrimSpace(str)))
}
//ShowWarning displays a warning message on stderr.
func (i *Implementation) ShowWarning(str string) {
- i.tui.Print(i.stderr, fmt.Sprintf("\x1B[0;1;33m!!\x1B[0;36m %s\x1B[0m", strings.TrimSpace(str)))
+ i.tui.Print(i.stderr, fmt.Sprintf("\x1B[0;1;33m!!\x1B[0;33m %s\x1B[0m\n", strings.TrimSpace(str)))
}
//ShowError displays an error message on stderr.
func (i *Implementation) ShowError(str string) {
- i.tui.Print(i.stderr, fmt.Sprintf("\x1B[0;1;31m!!\x1B[0;36m %s\x1B[0m", strings.TrimSpace(str)))
+ i.tui.Print(i.stderr, fmt.Sprintf("\x1B[0;1;31m!!\x1B[0;31m %s\x1B[0m\n", strings.TrimSpace(str)))
}
//ShowUsage displays a usage synopsis on stderr.