Files
cburn/cmd/tui.go
teernisse 083e7d40ce refactor!: rename module to github.com/theirongolddev/cburn
Change module path from 'cburn' to 'github.com/theirongolddev/cburn'
to enable standard Go remote installation:

  go install github.com/theirongolddev/cburn@latest

This is a BREAKING CHANGE for any external code importing this module
(though as a CLI tool, this is unlikely to affect anyone).

All internal imports updated to use the new module path.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-23 10:09:26 -05:00

38 lines
776 B
Go

package cmd
import (
"fmt"
"github.com/theirongolddev/cburn/internal/config"
"github.com/theirongolddev/cburn/internal/tui"
"github.com/theirongolddev/cburn/internal/tui/theme"
tea "github.com/charmbracelet/bubbletea"
"github.com/spf13/cobra"
)
var tuiCmd = &cobra.Command{
Use: "tui",
Short: "Launch interactive TUI dashboard",
RunE: runTUI,
}
func init() {
rootCmd.AddCommand(tuiCmd)
}
func runTUI(_ *cobra.Command, _ []string) error {
// Load config for theme
cfg, _ := config.Load()
theme.SetActive(cfg.Appearance.Theme)
app := tui.NewApp(flagDataDir, flagDays, flagProject, flagModel, !flagNoSubagents)
p := tea.NewProgram(app, tea.WithAltScreen())
if _, err := p.Run(); err != nil {
return fmt.Errorf("TUI error: %w", err)
}
return nil
}