From e3124527aea788413e6ad6aebd5143b3aa875ea9 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Tue, 10 Mar 2026 13:29:05 +0100 Subject: [PATCH] make this flag always there load env at init --- cmd/pm/init.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/pm/init.go b/cmd/pm/init.go index 5327aeb..95e3041 100644 --- a/cmd/pm/init.go +++ b/cmd/pm/init.go @@ -9,6 +9,7 @@ import ( "github.com/LazyBachelor/LazyPM/internal/app" "github.com/LazyBachelor/LazyPM/internal/commands/issues" "github.com/LazyBachelor/LazyPM/internal/commands/survey" + "github.com/LazyBachelor/LazyPM/internal/models" "github.com/LazyBachelor/LazyPM/pkg/repl" "github.com/LazyBachelor/LazyPM/pkg/task" "github.com/LazyBachelor/LazyPM/pkg/tui" @@ -24,9 +25,7 @@ func init() { log.Println("Error loading .env file") } - if os.Getenv("DEV") == "True" { - survey.StartCmd.Flags().BoolVar(&survey.DevFlag, "dev", false, "Enable development mode, which skips database connection, submission, task intro and questionare") - } + models.BaseConfig = models.BaseConfig.LoadFromEnv() task.RegisterInterface("tui", tui.New()) task.RegisterInterface("web", web.New())