drop mitchellh/go-homedir (#853)

This commit is contained in:
umarcor
2019-06-07 21:48:51 +02:00
committed by Steve Francia
parent ace6b14345
commit 8eaca5f0f4
6 changed files with 5 additions and 11 deletions

View File

@ -76,7 +76,6 @@ import (
"fmt"
"os"
homedir "github.com/mitchellh/go-homedir"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
@ -122,7 +121,7 @@ func initConfig() {
viper.SetConfigFile(cfgFile)
} else {
// Find home directory.
home, err := homedir.Dir()
home, err := os.UserHomeDir()
cobra.CheckErr(err)
// Search config in home directory with name ".cobra" (without extension).