Remove kr/pretty dependency

See https://github.com/spf13/hugo/issues/2124
See https://github.com/kr/text/issues/6
This commit is contained in:
Bjørn Erik Pedersen 2016-05-08 13:12:02 +02:00
parent f904a17905
commit a0cdbddebd

View file

@ -32,7 +32,6 @@ import (
"time"
"github.com/fsnotify/fsnotify"
"github.com/kr/pretty"
"github.com/mitchellh/mapstructure"
"github.com/spf13/cast"
jww "github.com/spf13/jwalterweatherman"
@ -1284,17 +1283,11 @@ func (v *Viper) findConfigFile() (string, error) {
func Debug() { v.Debug() }
func (v *Viper) Debug() {
fmt.Println("Aliases:")
pretty.Println(v.aliases)
fmt.Println("Override:")
pretty.Println(v.override)
fmt.Println("PFlags")
pretty.Println(v.pflags)
fmt.Println("Env:")
pretty.Println(v.env)
fmt.Println("Key/Value Store:")
pretty.Println(v.kvstore)
fmt.Println("Config:")
pretty.Println(v.config)
fmt.Println("Defaults:")
pretty.Println(v.defaults)
fmt.Printf("Aliases:\n%#v\n", v.aliases)
fmt.Printf("Override:\n%#v\n", v.override)
fmt.Printf("PFlags:\n%#v\n", v.pflags)
fmt.Printf("Env:\n%#v\n", v.env)
fmt.Printf("Key/Value Store:\n%#v\n", v.kvstore)
fmt.Printf("Config:\n%#v\n", v.config)
fmt.Printf("Defaults:\n%#v\n", v.defaults)
}