Files
Niko Syring 632dba5d65 refactor: rename module to gitea.syring.it/niko/oxkerclone
Match the actual canonical hosting URL so consumers can pull this
module directly via go modules without a local replace directive.
2026-05-02 07:20:32 +02:00

41 lines
762 B
Go

package main
import (
"fmt"
"os"
tea "charm.land/bubbletea/v2"
"gitea.syring.it/niko/oxkerclone/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)
}
}