cli/cmd/core.go

32 lines
754 B
Go
Raw Normal View History

2025-10-27 05:07:22 +00:00
package cmd
import (
"github.com/charmbracelet/lipgloss"
"github.com/leaanthony/clir"
2025-10-27 05:07:22 +00:00
)
// Define some global lipgloss styles for a Tailwind dark theme
var (
coreStyle = lipgloss.NewStyle().
Foreground(lipgloss.Color("#3b82f6")). // Tailwind blue-500
Bold(true)
subPkgStyle = lipgloss.NewStyle().
Foreground(lipgloss.Color("#e2e8f0")). // Tailwind gray-200
Bold(true)
linkStyle = lipgloss.NewStyle().
Foreground(lipgloss.Color("#3b82f6")). // Tailwind blue-500
Underline(true)
)
// Execute creates the root CLI application and runs it.
func Execute() error {
app := clir.NewCli("core", "CLI tool for development and production", "0.1.0")
2025-10-27 05:07:22 +00:00
// Register commands based on build tags
registerCommands(app)
2025-10-27 05:07:22 +00:00
return app.Run()
2025-10-27 05:07:22 +00:00
}