Skip to content

feat: add banner option for root command output#99

Open
franklad wants to merge 2 commits intowevm:mainfrom
franklad:feat/root-banner
Open

feat: add banner option for root command output#99
franklad wants to merge 2 commits intowevm:mainfrom
franklad:feat/root-banner

Conversation

@franklad
Copy link
Copy Markdown
Contributor

@franklad franklad commented Apr 1, 2026

Summary

  • Adds banner option to Cli.create that renders custom text above root help (branding, status, warnings)
  • Supports sync/async functions with silent error swallowing
  • mode option ('all' | 'human' | 'agent') targets TTY or non-TTY consumers
  • Skipped for --help, subcommands, and when returning undefined

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 1, 2026

Open in StackBlitz

npm i https://pkg.pr.new/incur@99

commit: a1afd3a

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@14e4d64). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #99   +/-   ##
=======================================
  Coverage        ?   92.47%           
=======================================
  Files           ?       23           
  Lines           ?     2736           
  Branches        ?     1092           
=======================================
  Hits            ?     2530           
  Misses          ?      171           
  Partials        ?       35           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Allows `Cli.create` to accept a `banner` option that renders custom
text (branding, live status, warnings) above the auto-generated root
help. Supports sync/async functions with silent error swallowing and
a `mode` option ('all' | 'human' | 'agent') to target TTY or non-TTY
consumers.
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.

1 participant