removed config file location
This commit is contained in:
parent
0c99d186a4
commit
23f2351543
1 changed files with 0 additions and 1 deletions
|
@ -27,7 +27,6 @@ func Initialize() {
|
||||||
viper.SetConfigName("config")
|
viper.SetConfigName("config")
|
||||||
viper.SetConfigType("yaml")
|
viper.SetConfigType("yaml")
|
||||||
viper.AddConfigPath("$HOME/.config/worklog/")
|
viper.AddConfigPath("$HOME/.config/worklog/")
|
||||||
viper.AddConfigPath("$HOME/.config/")
|
|
||||||
workingDirectory, error := os.Getwd()
|
workingDirectory, error := os.Getwd()
|
||||||
for error == nil && path.Base(workingDirectory) != "worklog" {
|
for error == nil && path.Base(workingDirectory) != "worklog" {
|
||||||
workingDirectory = path.Dir(workingDirectory)
|
workingDirectory = path.Dir(workingDirectory)
|
||||||
|
|
Loading…
Reference in a new issue