fix(vet): fix a number of lint/vet warnings

pull/291/head
Matt Butcher 9 years ago
parent be2a09d612
commit e7445a4632

@ -27,7 +27,7 @@ func uninstall(dryRun bool) error {
out, err := dm.Uninstall(runner) out, err := dm.Uninstall(runner)
if err != nil { if err != nil {
format.Error("Error uninstalling: %s %s", out, err) format.Err("Error uninstalling: %s %s", out, err)
} }
format.Msg(out) format.Msg(out)
return nil return nil

@ -2,6 +2,7 @@ package main
import ( import (
"github.com/deis/helm-dm/dm" "github.com/deis/helm-dm/dm"
"github.com/deis/helm-dm/format"
"github.com/deis/helm-dm/kubectl" "github.com/deis/helm-dm/kubectl"
) )

@ -4,7 +4,7 @@ import (
"github.com/deis/helm-dm/kubectl" "github.com/deis/helm-dm/kubectl"
) )
// uninstall uses kubectl to uninstall the base DM. // Uninstall uses kubectl to uninstall the base DM.
// //
// Returns the string output received from the operation, and an error if the // Returns the string output received from the operation, and an error if the
// command failed. // command failed.

@ -24,11 +24,13 @@ func Msg(msg string, v ...interface{}) {
fmt.Fprintf(os.Stdout, msg, v...) fmt.Fprintf(os.Stdout, msg, v...)
} }
// Success is an achievement marked by pretty output.
func Success(msg string, v ...interface{}) { func Success(msg string, v ...interface{}) {
msg = "[Success] " + msg + "\n" msg = "[Success] " + msg + "\n"
fmt.Fprintf(os.Stdout, msg, v...) fmt.Fprintf(os.Stdout, msg, v...)
} }
// Warning emits a warning message.
func Warning(msg string, v ...interface{}) { func Warning(msg string, v ...interface{}) {
msg = "[Warning] " + msg + "\n" msg = "[Warning] " + msg + "\n"
fmt.Fprintf(os.Stdout, msg, v...) fmt.Fprintf(os.Stdout, msg, v...)

Loading…
Cancel
Save