Files
oxkerclone/cmd/oxker/main.go
T
Niko Syring aac139368f refactor: move internal/ to pkg/ for external importability
Moves all packages from internal/ to pkg/ so they can be imported
by external modules (needed for claude-pm integration).

- internal/app/ → pkg/app/
- internal/docker/ → pkg/docker/
- internal/config/ → pkg/config/
- internal/utils/ → pkg/utils/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 07:05:59 +01:00

41 lines
753 B
Go

package main
import (
"fmt"
"os"
tea "charm.land/bubbletea/v2"
"github.com/oxker/oxker/pkg/app"
)
func main() {
// Parse command-line arguments
cliArgs, err := ParseCLIArgs()
if err != nil {
fmt.Fprintf(os.Stderr, "Error parsing CLI args: %v\n", err)
os.Exit(1)
}
// Load configuration
cfg, err := LoadConfig(cliArgs)
if err != nil {
fmt.Fprintf(os.Stderr, "Error loading config: %v\n", err)
os.Exit(1)
}
// Debug mode - no TUI
if !cfg.GUI {
ShowDebugInfo(nil)
return
}
// Create and start the Bubble Tea program
// AltScreen and MouseMode are now controlled via View() return value
p := tea.NewProgram(app.New(cfg))
if _, err := p.Run(); err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
}