minor fixes

This commit is contained in:
Kujtim Hoxha
2025-04-15 11:58:01 +02:00
parent f6be348bf7
commit 1cdd24fbc7
6 changed files with 49 additions and 27 deletions

View File

@@ -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
}