Skip to content

Make help page for cli for marimo new look nicer on 80 character wide…#9636

Merged
mscolnick merged 1 commit into
marimo-team:mainfrom
Rowlando13:marimo_cli_not_wrapping_nicely
May 21, 2026
Merged

Make help page for cli for marimo new look nicer on 80 character wide…#9636
mscolnick merged 1 commit into
marimo-team:mainfrom
Rowlando13:marimo_cli_not_wrapping_nicely

Conversation

@Rowlando13

@Rowlando13 Rowlando13 commented May 21, 2026

Copy link
Copy Markdown
Contributor

… terminals.

📝 Summary

Help page for marimo new --help looks nicer on 80 character wide terminals. Issue has before and after.

Closes #9614

📋 Pre-Review Checklist

  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • Video or media evidence is provided for any visual changes (optional).

✅ Merge Checklist

  • I have read the contributor guidelines.
  • Documentation has been updated where applicable, including docstrings for API changes.
  • Tests have been added for the changes made.
@vercel

vercel Bot commented May 21, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment May 21, 2026 5:09am

Request Review

@github-actions

github-actions Bot commented May 21, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

Architecture diagram
sequenceDiagram
    participant User
    participant CLI as CLI (marimo _cli/cli.py)
    participant Shell as Terminal (80-col width)
    
    Note over User,Shell: CLI help page generation for "marimo new"
    
    User->>CLI: Run "marimo new --help"
    CLI->>CLI: Build new_help_msg string
    Note over CLI: Assembles bullet list with _key_value_bullets()
    CLI->>CLI: Split bullets into two groups
    Note over CLI: First group: common usage (create notebook, file-based prompt)
    CLI->>CLI: Second group: less common usage (quoted prompt)
    CLI->>CLI: Join groups with newline separators
    CLI->>Shell: Output formatted help text
    Shell-->>User: Display rendered help (single-column bullet list)
    
    Note over CLI,Shell: Key constraint: terminal width of 80 characters
    Note over CLI: Bullets are rearranged to prevent overflow beyond 80 cols
Loading

Re-trigger cubic

@Rowlando13

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@Rowlando13

Copy link
Copy Markdown
Contributor Author

@akshayka PR is ready.

@akshayka akshayka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks!

@mscolnick mscolnick added the enhancement New feature or request label May 21, 2026
@mscolnick mscolnick merged commit 6c15054 into marimo-team:main May 21, 2026
47 of 49 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

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

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

Labels

enhancement New feature or request

3 participants