diff --git a/cmd/hoster_cli/hoster.go b/cmd/hoster_cli/hoster.go index 98b0681..3052b4b 100644 --- a/cmd/hoster_cli/hoster.go +++ b/cmd/hoster_cli/hoster.go @@ -4,18 +4,24 @@ import ( "hoster/cmd/hoster_cli/commands" "hoster/internals/conf" "os" + "path/filepath" "github.com/kataras/golog" "github.com/urfave/cli/v2" ) func main() { - conf.LoadConfig(".hoster.yml") + homeDir, err := os.UserHomeDir() + if err != nil { + golog.Fatalf("Error getting home directory: %v", err) + } + + conf.LoadConfig(filepath.Join(homeDir, ".hoster.yml")) app := &cli.App{ Name: "hoster", Usage: "Hoster", - Version: "1.0.1", + Version: "1.0.2", Commands: []*cli.Command{ { Name: "new",