Skip to content

cli: format help message with colors, bold#8141

Merged
mscolnick merged 8 commits intomainfrom
aka/better-cli-help
Feb 6, 2026
Merged

cli: format help message with colors, bold#8141
mscolnick merged 8 commits intomainfrom
aka/better-cli-help

Conversation

@akshayka
Copy link
Contributor

@akshayka akshayka commented Feb 5, 2026

This PR updates the marimo CLI help message to use colors for command and option names, and bold headings. It generally mirrors the formatting of popular Rust CLIs such as cargo and uv. Additionally, this PR migrates cli.print to use click.style() instead of raw ANSI codes.

Before.
image

After.
image

@vercel
Copy link

vercel bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Feb 6, 2026 0:14am

Request Review

import sys
from typing import Any, cast

import click
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately marimo/_cli/print.py has been used in a few places outside the CLI, so this will break web-assembly. we can either lazy import or fallback

Image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or remove these dependencies

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, did a refactor which should fix this

@mscolnick mscolnick merged commit b276cd5 into main Feb 6, 2026
49 of 50 checks passed
@mscolnick mscolnick deleted the aka/better-cli-help branch February 6, 2026 00:41
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.19.9-dev4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants