cmd/utils.go
changeset 89 3758bb5f0979
parent 85 a4464c0b0c36
child 91 02312ccc1fd3
--- a/cmd/utils.go	Sun May 07 17:15:00 2017 +0200
+++ b/cmd/utils.go	Sun May 07 17:32:33 2017 +0200
@@ -55,9 +55,11 @@
 	// Initialize color mode
 	switch viper.GetString("color") {
 	case "on", "yes", "force":
-		printer.ColorMode = 1
+		opt["color_mode"] = "on"
 	case "off", "no":
-		printer.ColorMode = 2
+		opt["color_mode"] = "off"
+	default:
+		opt["color_mode"] = "auto"
 	}
 
 	if of == "theme" {