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