- Move cmd/core/cmd/* to cmd/* (flatten directory structure) - Update module path from github.com/host-uk/core/cmd/core to github.com/host-uk/core - Remove go.mod files from pkg/* (single module now) - Simplify pkg/mcp to file operations only (no GUI deps) - GUI features (display, webview, process) stay in core-gui/pkg/mcp - Fix import aliases (sdkpkg) for package name conflicts - Remove old backup directory (cmdbk) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
780 B
Go
31 lines
780 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/charmbracelet/lipgloss"
|
|
"github.com/leaanthony/clir"
|
|
)
|
|
|
|
// 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 for Go/PHP development, multi-repo management, and deployment", "0.1.0")
|
|
|
|
// Register commands based on build tags
|
|
registerCommands(app)
|
|
|
|
return app.Run()
|
|
}
|