--- a/printer/templateprinter.go Mon May 01 06:35:28 2017 +0000
+++ b/printer/templateprinter.go Mon May 01 12:25:43 2017 +0200
@@ -16,6 +16,7 @@
"github.com/m0t0k1ch1/gomif"
"github.com/McKael/madon"
+ "github.com/McKael/madonctl/printer/colors"
)
// TemplatePrinter represents a Template printer
@@ -31,6 +32,7 @@
t, err := template.New("output").Funcs(template.FuncMap{
"fromhtml": html2string,
"fromunix": unix2string,
+ "color": colors.ANSICodeString,
}).Parse(tmpl)
if err != nil {
return nil, err