This commit is contained in:
maddalax 2024-11-01 06:03:19 -05:00
parent 50bc55e9ca
commit d544be6f04

View file

@ -1,7 +1,6 @@
package config
import (
"github.com/maddalax/htmgo/cli/htmgo/tasks/process"
"gopkg.in/yaml.v3"
"log/slog"
"os"
@ -68,7 +67,10 @@ func (cfg *ProjectConfig) Enhance() *ProjectConfig {
}
func Get() *ProjectConfig {
cwd := process.GetWorkingDir()
cwd, err := os.Getwd()
if err != nil {
return DefaultProjectConfig()
}
config := FromConfigFile(cwd)
return config
}