Skip to content

Support app/queue/rule lookup by name or ID in commands - #363

Closed
sacOO7 wants to merge 4 commits into
mainfrom
fix/implement-name-or-id
Closed

Support app/queue/rule lookup by name or ID in commands#363
sacOO7 wants to merge 4 commits into
mainfrom
fix/implement-name-or-id

Conversation

@sacOO7

Copy link
Copy Markdown
Contributor

Summary

  • Rename positional args to appNameOrId, queueNameOrId, ruleNameOrId in apps switch,
    apps update, stats app, queues delete, rules delete, and rules update commands
  • Use resolveAppIdFromNameOrId() so users can pass app names instead of IDs
  • Add name-based lookup for queue delete (tries name first, then ID)
  • Add actionable hints to "not found" errors (e.g., Run "ably queues list" to see available queues.)
  • Support custom hint in this.fail() context, with Ably error code hints taking priority

arguments on commands where the flag value represents the primary
entity being acted upon, aligning with CLI conventions (docopt, POSIX, sibling commands).
@vercel

vercelBot commented Apr 21, 2026

Copy link
Copy Markdown

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

ProjectDeploymentActionsUpdated (UTC)
cli-web-cliReadyReadyPreview, CommentApr 21, 2026 5:42pm

Request Review

@sacOO7
sacOO7force-pushed the fix/flags-with-arguments branch from a800f0b to fb9b7f7CompareApril 22, 2026 09:11
Base automatically changed from fix/flags-with-arguments to mainApril 22, 2026 09:24
@sacOO7

Copy link
Copy Markdown
ContributorAuthor

closing in favor of #369

@sacOO7sacOO7 closed this Apr 23, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@sacOO7