From 720be210c35252b4478305b0bc1c88d17d8ca25a Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Wed, 18 Mar 2026 15:00:15 +0100 Subject: [PATCH] add commands to start tui and web --- cmd/pm/init.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/cmd/pm/init.go b/cmd/pm/init.go index fe69b17..5a6fcfb 100644 --- a/cmd/pm/init.go +++ b/cmd/pm/init.go @@ -104,6 +104,8 @@ func init() { RootCmd.AddGroup(&cobra.Group{ID: "other", Title: "Additional Commands"}) RootCmd.SetHelpCommandGroupID("other") RootCmd.AddCommand(replCmd) + RootCmd.AddCommand(tuiCmd) + RootCmd.AddCommand(webCmd) } @@ -117,6 +119,26 @@ var replCmd = &cobra.Command{ }, } +var tuiCmd = &cobra.Command{ + Use: "tui", + GroupID: "other", + Short: "Start the interactive TUI interface", + Long: `Start the interactive Terminal User Interface (TUI) for managing your projects and issues in an interactive terminal environment.`, + RunE: func(cmd *cobra.Command, args []string) error { + return tui.New().Run(cmd.Context(), App.Config) + }, +} + +var webCmd = &cobra.Command{ + Use: "web", + GroupID: "other", + Short: "Start the interactive web interface", + Long: `Start the interactive web interface for managing your projects and issues in a web browser.`, + RunE: func(cmd *cobra.Command, args []string) error { + return web.New().Run(cmd.Context(), App.Config) + }, +} + func initializeApp(ctx context.Context) (*app.App, func(), error) { return app.New(ctx, tasks.BaseConfig().WithAutoInit(true)) }