diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-15 11:58:01 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-21 13:41:27 +0200 |
| commit | 1cdd24fbc7b45693b65b5d55e4f45c2ebc60a556 (patch) | |
| tree | a623be9bdcfb78fca8185d10019c118f4ac00106 /internal/config | |
| parent | f6be348bf704ab3d012eec549357f5acd9c74796 (diff) | |
| download | opencode-1cdd24fbc7b45693b65b5d55e4f45c2ebc60a556.tar.gz opencode-1cdd24fbc7b45693b65b5d55e4f45c2ebc60a556.zip | |
minor fixes
Diffstat (limited to 'internal/config')
| -rw-r--r-- | internal/config/config.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index 1f3091ff3..f0afbdd3c 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -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 } |
