feat(cli): show Rich gradient banner on winml / winml --help#572
Merged
Conversation
- Replace static ASCII-box banner with a Rich-powered gradient renderer (WinML CLI block letters, cyan→blue→purple→pink→red left-to-right) - Both `winml` (no args) and `winml --help` print the banner to stderr then show Click help; exit 0 in both cases - Fix two-I inconsistency from alternating ▌/▐ by using █ throughout - Add invoke_without_command=True so no-args exits 0 instead of 2 - Add TestBanner regression tests (5 cases)
Collaborator
|
If you have a screenshot in the description, that would be helpful. |
xieofxie
approved these changes
May 11, 2026
Contributor
|
Fancy! |
DingmaomaoBJTU
added a commit
that referenced
this pull request
May 13, 2026
- Use @build_config_option from cli_utils for -c/--config (replaces inline @click.option, gains path_type=Path so config_file is Path|None) - Add _CONFIG_AUTO_LABEL = "(auto)" module-level const; replace all string literals "(auto)" with it - Fix no_compile check in auto-generate path: `if no_compile is True` (matches tristate from #570 — None means inherit, not skip) - Add None guard for optim in to_dict() for parity with export/quant/compile - Rebase onto main: drops redundant banner commit (already merged as #572)
ssss141414
pushed a commit
that referenced
this pull request
May 15, 2026
Closes #414 ## Summary - Replaces the static ASCII-box banner with a Rich-powered gradient renderer: `WinML CLI` block letters colored cyan → blue → purple → pink → red left-to-right - Both `winml` (no args) and `winml --help` now print the banner to stderr, then show Click help, and exit 0 — both cases are equivalent as described in the issue - Fixes the two-I inconsistency from the `▌`/`▐` alternation approach by using `█` throughout, so identical letter shapes (the `i` in WinML and the `I` in CLI) render identically regardless of horizontal position - Adds `invoke_without_command=True` so `winml` with no args exits 0 (was 2) - Banner version is read dynamically from `__version__` (backed by `importlib.metadata`), not hardcoded - Adds `TestBanner` regression suite (5 cases) in `tests/cli/test_main.py` New look with banner: <img width="539" height="519" alt="image" src="https://github.com/user-attachments/assets/449f6f0c-a982-42fb-9e1b-eaefdcef7830" />
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #414
Summary
WinML CLIblock letters colored cyan → blue → purple → pink → red left-to-rightwinml(no args) andwinml --helpnow print the banner to stderr, then show Click help, and exit 0 — both cases are equivalent as described in the issue▌/▐alternation approach by using█throughout, so identical letter shapes (theiin WinML and theIin CLI) render identically regardless of horizontal positioninvoke_without_command=Truesowinmlwith no args exits 0 (was 2)__version__(backed byimportlib.metadata), not hardcodedTestBannerregression suite (5 cases) intests/cli/test_main.pyNew look with banner:
