diff options
Diffstat (limited to 'cmd/output.go')
-rw-r--r-- | cmd/output.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cmd/output.go b/cmd/output.go new file mode 100644 index 000000000..630e831de --- /dev/null +++ b/cmd/output.go @@ -0,0 +1,21 @@ +// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +package cmd + +import ( + "fmt" + "os" +) + +func CommandPrintln(a ...interface{}) (int, error) { + return fmt.Println(a...) +} + +func CommandPrintErrorln(a ...interface{}) (int, error) { + return fmt.Fprintln(os.Stderr, a...) +} + +func CommandPrettyPrintln(a ...interface{}) (int, error) { + return fmt.Fprintln(os.Stderr, a...) +} |