Add a branded header to CLI help - #867
Conversation
Signed-off-by: HarshPopat23 <musichk61@gmail.com>
🤖 Augment PR SummarySummary: This PR replaces the compact CLI help title with a branded five-line ASCII banner.
🤖 Was this summary useful? React with 👍 or 👎 |
|
@HarshPopat23 For these PRs do you mind showing a screenshot of how it looks like on your terminal? Just to make it a bit easier to review without having to clone, compile, and run myself :) |
Signed-off-by: HarshPopat23 <musichk61@gmail.com>
Signed-off-by: HarshPopat23 <musichk61@gmail.com>
There was a problem hiding this comment.
All reported issues were addressed across 4 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Signed-off-by: HarshPopat23 <musichk61@gmail.com>
|
@jviotti PTAL:
|
Signed-off-by: HarshPopat23 <musichk61@gmail.com>
… checks Signed-off-by: HarshPopat23 <musichk61@gmail.com>
Signed-off-by: HarshPopat23 <musichk61@gmail.com>
fbef82f to
914773c
Compare
| std::println(); | ||
| std::println("by Sourcemeta"); | ||
| std::println(); | ||
| std::println("Validate, lint, format, test, and bundle JSON Schemas."); |
There was a problem hiding this comment.
The CLI does more than this though, and will do even more in the future. Can we keep this more generic and open-ended? Maybe take inspiration from how we describe it in the README and repo description?
| constexpr auto LOGO_STYLE{TerminalStyle::Bold | TerminalStyle::Cyan}; | ||
| constexpr auto TITLE_STYLE{TerminalStyle::Bold | TerminalStyle::Cyan}; | ||
|
|
||
| std::println("{}", paint(" ======== ========", LOGO_STYLE)); |
There was a problem hiding this comment.
This ASCII art is huge. If we do some ASCII art it has to be relatively small. Also keep in mind that nowadays, people run this CLI a lot through LLMs, and you will probably consume a good amount of tokens parsing this massive ASCII art.
Maybe something simpler? It doesn't need to be the JSON Schema logo. Can be something else that looks cool
… tagline Signed-off-by: HarshPopat23 <musichk61@gmail.com>
|
Hi @jviotti, Thanks for the feedback.
Here is how it looks on the terminal:
|
jviotti
left a comment
There was a problem hiding this comment.
Nice! Looks super cool! Thanks for this!


Summary
Replaces the minimal single-line CLI help header with a high-impact, branded ASCII-art header featuring both the official JSON Schema geometric octagonal logo and the Sourcemeta interwoven chevron emblem, styled with ANSI colors.
Commands Displaying the Logo Header
The branded logo header is rendered whenever help documentation is requested or displayed by default. Specifically, it appears on the following command invocations: