Example #1
0
func (cmd *Command) printOk(message string, params ...interface{}) {
	color.Fprint(cmd.out, fmt.Sprintf("@gOK: %s\n", fmt.Sprintf(message, params...)))
}
Example #2
0
func (cmd *Command) printInfo(message string, params ...interface{}) {
	color.Fprint(cmd.out, "INFO: @w%s\n", fmt.Sprintf(message, params...))
}
Example #3
0
func (cmd *Command) printError(err error) {
	color.Fprint(cmd.out, fmt.Sprintf("@rERROR: %s\n", err))
}