Skip to content

feat: add resend commands feature to CLI and update documentation#185

Merged
felipefreitag merged 2 commits intoresend:mainfrom
Shubhdeep12:feat/resend-commands
Apr 9, 2026
Merged

feat: add resend commands feature to CLI and update documentation#185
felipefreitag merged 2 commits intoresend:mainfrom
Shubhdeep12:feat/resend-commands

Conversation

@Shubhdeep12
Copy link
Copy Markdown
Contributor

@Shubhdeep12 Shubhdeep12 commented Apr 8, 2026


Summary by cubic

Add resend commands to print the full CLI command tree as JSON for scripting and agent tooling. Integrated into the root CLI, with docs, help text, and tests.

  • New Features
    • resend commands: outputs the entire command tree (subcommands, options, descriptions). Auto-prints JSON when stdout is piped; use global --json in interactive terminals.
    • Registered on the root program; added tests for JSON tree shape. Updated README and skills/resend-cli/SKILL.md to include the new discovery command.

Written for commit 2944669. Summary will update on new commits.

@Shubhdeep12 Shubhdeep12 marked this pull request as ready for review April 8, 2026 17:02
Copy link
Copy Markdown
Contributor

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

Choose a reason for hiding this comment

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

No issues found across 5 files

@felipefreitag
Copy link
Copy Markdown
Contributor

@Shubhdeep12 Interesting idea, I'm curious what the use case is here? The output is pretty big, it will take a chunk of context for an agent. Does it work better than drilling down --help commands? Do you have automated/agentic workflows using this?

@Shubhdeep12
Copy link
Copy Markdown
Contributor Author

@Shubhdeep12 Interesting idea, I'm curious what the use case is here? The output is pretty big, it will take a chunk of context for an agent. Does it work better than drilling down --help commands? Do you have automated/agentic workflows using this?

yeah, good question. the goal is one structured dump for scripts/agents so you’re not chaining --help on every subcommand or pasting stale docs into a prompt. Humans should still use --help on the command they care about and that’s the right UX there.
Token-wise, it only really helps when you’d otherwise repeat a lot of help text or walk the whole tree.
For a single command, --help is smaller.

Same idea here (runtime introspection vs stuffing documentation for agents).

@felipefreitag felipefreitag merged commit 258651a into resend:main Apr 9, 2026
8 checks passed
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.

2 participants