minor fixes
This commit is contained in:
parent
f6be348bf7
commit
1cdd24fbc7
6 changed files with 49 additions and 27 deletions
|
|
@ -272,5 +272,8 @@ func Get() *Config {
|
|||
|
||||
// WorkingDirectory returns the current working directory from the configuration.
|
||||
func WorkingDirectory() string {
|
||||
return viper.GetString("wd")
|
||||
if cfg == nil {
|
||||
panic("config not loaded")
|
||||
}
|
||||
return cfg.WorkingDir
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue