diff --git a/cmd/pm/main.go b/cmd/pm/main.go index 5ad70e1..d067ef4 100644 --- a/cmd/pm/main.go +++ b/cmd/pm/main.go @@ -14,6 +14,8 @@ func main() { StatisticsStoragePath: "./.pm/stats.json", } + cli := cli.NewCli() + if err := cli.Run(context.Background(), config); err != nil { return } diff --git a/cmd/tui/main.go b/cmd/tui/main.go index f53021f..824e6aa 100644 --- a/cmd/tui/main.go +++ b/cmd/tui/main.go @@ -13,7 +13,9 @@ func main() { IssuePrefix: "pm", } - if _, err := tui.Run(context.Background(), config); err != nil { + tui := tui.NewTui() + + if err := tui.Run(context.Background(), config); err != nil { panic(err) } } diff --git a/cmd/web/main.go b/cmd/web/main.go index bf8542b..1cb7518 100644 --- a/cmd/web/main.go +++ b/cmd/web/main.go @@ -1,14 +1,17 @@ package main import ( - "github.com/LazyBachelor/LazyPM/internal/service" - "github.com/LazyBachelor/LazyPM/pkg/web" "context" "fmt" "os" + + "github.com/LazyBachelor/LazyPM/internal/service" + "github.com/LazyBachelor/LazyPM/pkg/web" ) func main() { + web := web.NewWeb() + config := service.Config{ WebAddress: "localhost:8080", BeadsDBPath: "./.pm/db.db",