Commit e7445a46 authored by Matt Butcher's avatar Matt Butcher

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

parent be2a09d6
......@@ -27,7 +27,7 @@ func uninstall(dryRun bool) error {
out, err := dm.Uninstall(runner)
if err != nil {
format.Error("Error uninstalling: %s %s", out, err)
format.Err("Error uninstalling: %s %s", out, err)
}
format.Msg(out)
return nil
......
......@@ -2,6 +2,7 @@ package main
import (
"github.com/deis/helm-dm/dm"
"github.com/deis/helm-dm/format"
"github.com/deis/helm-dm/kubectl"
)
......
......@@ -4,7 +4,7 @@ import (
"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
// command failed.
......
......@@ -24,11 +24,13 @@ func Msg(msg string, v ...interface{}) {
fmt.Fprintf(os.Stdout, msg, v...)
}
// Success is an achievement marked by pretty output.
func Success(msg string, v ...interface{}) {
msg = "[Success] " + msg + "\n"
fmt.Fprintf(os.Stdout, msg, v...)
}
// Warning emits a warning message.
func Warning(msg string, v ...interface{}) {
msg = "[Warning] " + msg + "\n"
fmt.Fprintf(os.Stdout, msg, v...)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment