Skip to content

feat(cli): ProjectDiscovery-style UX — banner, colored logs, braille spinner, styled tables#26

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/improve-cli-tool-user-experience
Draft

feat(cli): ProjectDiscovery-style UX — banner, colored logs, braille spinner, styled tables#26
Copilot wants to merge 2 commits intomainfrom
copilot/improve-cli-tool-user-experience

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 8, 2026

Brings macaron's CLI UX to parity with ProjectDiscovery tooling (nuclei, httpx, subfinder) — banner on startup, colored log levels, live braille spinner, and colored result tables.

internal/cliui/banner.go (new)

  • Box-drawing MACARON art + tagline/version header via PrintBanner(version, quiet)
  • Colored log helpers: Info (cyan [INF]), Warn (yellow [WRN]), Err (red [ERR]), OK (green [OK])
  • Color utility functions (Highlight, Muted, GreenText, RedText, YellowText, CyanText)
  • Respects NO_COLOR env var and new -nc flag

internal/cliui/live.go

  • Swapped |/-\ spinner for braille frames (⣾⣽⣻⣷⣯⣟⡿⢿) — same pattern as Nuclei/httpx
  • Live line format: ⣾ example.com [subdomains] enumerating (4s)
  • Stage events logged as [SCAN], [RUN], [OK], [WRN] badges

cmd/macaron/main.go

  • Banner shown for all user-facing commands; suppressed by -qut
  • printHelp() rewritten — grouped sections (USAGE / SCAN FLAGS / OUTPUT FLAGS / API KEYS / DASHBOARD / TOOLS & CONFIG / EXAMPLES), cyan flag names, muted descriptions
  • Pre-scan: [INF] Profile: balanced | mode: wide | stages: all | rate: 150 | threads: 30
  • Post-scan: [OK] Completed 1 target(s) in 12.4s
  • -lst shows ✔ installed / ✘ missing per tool
  • All fmt.Fprintf(os.Stderr, ...) replaced with typed log helpers

internal/app/app.go

  • All tables use table.StyleRounded + cyan column headers
  • Vuln counts colored red when >0; live-host counts colored green when >0
  • Extracted tableStyle() helper for consistency across ShowStatus, RenderSetup, RenderScanSummary

…spinner, styled tables

Agent-Logs-Url: https://github.com/root-Manas/macaron/sessions/6dea78af-da78-401a-9db1-1beab80801a7

Co-authored-by: root-Manas <97402139+root-Manas@users.noreply.github.com>
Copilot AI changed the title [WIP] Enhance CLI tool user experience to match security tools feat(cli): ProjectDiscovery-style UX — banner, colored logs, braille spinner, styled tables Apr 8, 2026
Copilot AI requested a review from root-Manas April 8, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants