mirror of https://github.com/spf13/viper.git
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:
parent
f904a17905
commit
a0cdbddebd
21
viper.go
21
viper.go
|
@ -32,7 +32,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/fsnotify/fsnotify"
|
"github.com/fsnotify/fsnotify"
|
||||||
"github.com/kr/pretty"
|
|
||||||
"github.com/mitchellh/mapstructure"
|
"github.com/mitchellh/mapstructure"
|
||||||
"github.com/spf13/cast"
|
"github.com/spf13/cast"
|
||||||
jww "github.com/spf13/jwalterweatherman"
|
jww "github.com/spf13/jwalterweatherman"
|
||||||
|
@ -1284,17 +1283,11 @@ func (v *Viper) findConfigFile() (string, error) {
|
||||||
func Debug() { v.Debug() }
|
func Debug() { v.Debug() }
|
||||||
func (v *Viper) Debug() {
|
func (v *Viper) Debug() {
|
||||||
fmt.Println("Aliases:")
|
fmt.Println("Aliases:")
|
||||||
pretty.Println(v.aliases)
|
fmt.Printf("Aliases:\n%#v\n", v.aliases)
|
||||||
fmt.Println("Override:")
|
fmt.Printf("Override:\n%#v\n", v.override)
|
||||||
pretty.Println(v.override)
|
fmt.Printf("PFlags:\n%#v\n", v.pflags)
|
||||||
fmt.Println("PFlags")
|
fmt.Printf("Env:\n%#v\n", v.env)
|
||||||
pretty.Println(v.pflags)
|
fmt.Printf("Key/Value Store:\n%#v\n", v.kvstore)
|
||||||
fmt.Println("Env:")
|
fmt.Printf("Config:\n%#v\n", v.config)
|
||||||
pretty.Println(v.env)
|
fmt.Printf("Defaults:\n%#v\n", v.defaults)
|
||||||
fmt.Println("Key/Value Store:")
|
|
||||||
pretty.Println(v.kvstore)
|
|
||||||
fmt.Println("Config:")
|
|
||||||
pretty.Println(v.config)
|
|
||||||
fmt.Println("Defaults:")
|
|
||||||
pretty.Println(v.defaults)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue