From e2eb0f4b5614663f1a35f8f30af77ee4e77efe41 Mon Sep 17 00:00:00 2001 From: Snider Date: Thu, 29 Jan 2026 11:28:58 +0000 Subject: [PATCH] chore(cli): remove ASCII art banner Simplifies CLI startup by removing the large ASCII art banner. Now uses clir's standard header with version and description. Co-Authored-By: Claude Opus 4.5 --- cmd/core/cmd/root.go | 66 ++------------------------------------------ 1 file changed, 2 insertions(+), 64 deletions(-) diff --git a/cmd/core/cmd/root.go b/cmd/core/cmd/root.go index bd6d2bc..2dc9592 100644 --- a/cmd/core/cmd/root.go +++ b/cmd/core/cmd/root.go @@ -1,10 +1,7 @@ package cmd import ( - "fmt" - "github.com/charmbracelet/lipgloss" - "github.com/common-nighthawk/go-figure" "github.com/leaanthony/clir" ) @@ -18,51 +15,14 @@ var ( Foreground(lipgloss.Color("#e2e8f0")). // Tailwind gray-200 Bold(true) - descriptionStyle = lipgloss.NewStyle(). - Foreground(lipgloss.Color("#e2e8f0")). // Tailwind gray-200 - Padding(1, 2) - linkStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#3b82f6")). // Tailwind blue-500 Underline(true) - - taglineStyle = lipgloss.NewStyle(). - Foreground(lipgloss.Color("#e2e8f0")). - PaddingTop(2).PaddingLeft(8).PaddingBottom(1). - Align(lipgloss.Center) ) // Execute creates the root CLI application and runs it. func Execute() error { - // Create a new clir instance, removing the description and version to avoid the default header. - app := clir.NewCli("core", "", "") - - // Recreate the header with better alignment. - title := coreStyle.Render("Core") + subPkgStyle.Render(".Framework") - version := coreStyle.Render("Version V0.0.1") - titleLine := lipgloss.JoinHorizontal(lipgloss.Top, title, lipgloss.NewStyle().Width(4).Render(""), version) - - linksLine := "For more information: " + linkStyle.Render("https://core.help") + " and " + linkStyle.Render("https://lt.hn") - descLine := "managing various aspects of Core.Framework applications." - - headerBlock := lipgloss.JoinVertical(lipgloss.Center, - titleLine, - "", // blank line - "", // blank line - linksLine, - "", // blank line - descLine, - ) - - // Set the long description using a centered container. - app.LongDescription(lipgloss.NewStyle().Padding(1, 2).Align(lipgloss.Center).Render(headerBlock)) - - // Default action when no command is given is to show the banner and then the help. - app.Action(func() error { - showBanner() - app.PrintHelp() - return nil - }) + app := clir.NewCli("core", "CLI for Go/PHP development, multi-repo management, and deployment", "0.1.0") // Add the top-level commands devCmd := app.NewSubCommand("dev", "Development tools for Core Framework") @@ -92,28 +52,6 @@ func Execute() error { AddPHPCommands(app) AddSDKCommand(app) AddTestCommand(app) - // Run the application + return app.Run() } - -// showBanner generates and prints the ASCII art banner. -func showBanner() { - coreFig := figure.NewFigure("Core", "big", true) - frameworkFig := figure.NewFigure("Framework", "big", true) - - coreBlock := coreStyle.Render(coreFig.String()) - frameworkBlock := subPkgStyle.Render(frameworkFig.String()) - - gap := lipgloss.NewStyle().Width(4).Render("") - bigWords := lipgloss.JoinHorizontal(lipgloss.Top, gap, coreBlock, gap, frameworkBlock) - tagline := taglineStyle.Render( - "the birthplace of what Web3 will become", - ) - - output := lipgloss.JoinVertical(lipgloss.Left, - bigWords, - tagline, - ) - - fmt.Print(output) -}