fix
This commit is contained in:
parent
50bc55e9ca
commit
d544be6f04
1 changed files with 4 additions and 2 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
package config
|
package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/maddalax/htmgo/cli/htmgo/tasks/process"
|
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
"os"
|
"os"
|
||||||
|
|
@ -68,7 +67,10 @@ func (cfg *ProjectConfig) Enhance() *ProjectConfig {
|
||||||
}
|
}
|
||||||
|
|
||||||
func Get() *ProjectConfig {
|
func Get() *ProjectConfig {
|
||||||
cwd := process.GetWorkingDir()
|
cwd, err := os.Getwd()
|
||||||
|
if err != nil {
|
||||||
|
return DefaultProjectConfig()
|
||||||
|
}
|
||||||
config := FromConfigFile(cwd)
|
config := FromConfigFile(cwd)
|
||||||
return config
|
return config
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue