github.com/lologarithm/mattermost-server@v5.3.2-0.20181002060438-c82a84ed765b+incompatible/cmd/mattermost/commands/output.go (about)

     1  // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
     2  // See License.txt for license information.
     3  
     4  package commands
     5  
     6  import (
     7  	"fmt"
     8  	"os"
     9  )
    10  
    11  func CommandPrintln(a ...interface{}) (int, error) {
    12  	return fmt.Println(a...)
    13  }
    14  
    15  func CommandPrintErrorln(a ...interface{}) (int, error) {
    16  	return fmt.Fprintln(os.Stderr, a...)
    17  }
    18  
    19  func CommandPrettyPrintln(a ...interface{}) (int, error) {
    20  	return fmt.Fprintln(os.Stderr, a...)
    21  }