Skip to content

feat(cli): add plural command aliases for list commands#209

Merged
BYK merged 2 commits intomainfrom
feat/plural-command-aliases
Feb 6, 2026
Merged

feat(cli): add plural command aliases for list commands#209
BYK merged 2 commits intomainfrom
feat/plural-command-aliases

Conversation

@betegon
Copy link
Member

@betegon betegon commented Feb 6, 2026

Summary

Adds shorthand plural aliases so users can type sentry issues instead of sentry issue list. Mirrors common CLI patterns (like gh repos).

Aliases

Alias Routes to
sentry issues sentry issue list
sentry orgs sentry org list
sentry projects sentry project list
sentry logs sentry log list

All flags work as expected (sentry issues --json, etc.) and aliases appear in --help output.

Test Plan

sentry issues --help
sentry orgs --json
sentry projects
sentry logs --limit 5

Add shorthand aliases where plural forms route to list commands:
- sentry issues → sentry issue list
- sentry orgs → sentry org list
- sentry projects → sentry project list
- sentry logs → sentry log list

These appear in --help and work with shell completion.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (cli) Add plural command aliases for list commands by betegon in #209

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

Codecov Results 📊

✅ Patch coverage is 100.00%. Project has 1996 uncovered lines.
✅ Project coverage is 76.13%. Comparing base (base) to head (head).

Files with missing lines (40)
File Patch % Lines
human.ts 55.31% ⚠️ 391 Missing
resolve-target.ts 15.28% ⚠️ 366 Missing
oauth.ts 25.10% ⚠️ 194 Missing
api-client.ts 70.62% ⚠️ 176 Missing
upgrade.ts 45.49% ⚠️ 139 Missing
view.ts 47.70% ⚠️ 91 Missing
migration.ts 47.44% ⚠️ 82 Missing
browser.ts 4.11% ⚠️ 70 Missing
span-tree.ts 5.00% ⚠️ 57 Missing
telemetry.ts 77.51% ⚠️ 56 Missing
api.ts 89.80% ⚠️ 47 Missing
seer.ts 75.54% ⚠️ 45 Missing
schema.ts 89.56% ⚠️ 40 Missing
seer.ts 79.87% ⚠️ 30 Missing
preload.ts 53.23% ⚠️ 29 Missing
utils.ts 88.94% ⚠️ 25 Missing
detector.ts 90.10% ⚠️ 20 Missing
output.ts 15.00% ⚠️ 17 Missing
code-scanner.ts 95.00% ⚠️ 16 Missing
arg-parsing.ts 90.00% ⚠️ 12 Missing
dsn-cache.ts 94.62% ⚠️ 12 Missing
fix.ts 83.61% ⚠️ 10 Missing
qrcode.ts 33.33% ⚠️ 10 Missing
fs-utils.ts 57.14% ⚠️ 9 Missing
project-root.ts 97.73% ⚠️ 7 Missing
version-check.ts 91.76% ⚠️ 7 Missing
feedback.ts 84.21% ⚠️ 6 Missing
auth.ts 95.52% ⚠️ 6 Missing
upgrade.ts 93.83% ⚠️ 5 Missing
resolver.ts 94.57% ⚠️ 5 Missing
index.ts 95.96% ⚠️ 4 Missing
project-aliases.ts 97.40% ⚠️ 2 Missing
project-root-cache.ts 96.92% ⚠️ 2 Missing
json.ts 33.33% ⚠️ 2 Missing
alias.ts 99.42% ⚠️ 1 Missing
env-file.ts 99.19% ⚠️ 1 Missing
parser.ts 98.63% ⚠️ 1 Missing
colors.ts 97.96% ⚠️ 1 Missing
helpers.ts 94.74% ⚠️ 1 Missing
helpers.ts 94.74% ⚠️ 1 Missing
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    76.13%    76.13%        —%
==========================================
  Files           65        65         —
  Lines         8362      8362         —
  Branches         0         0         —
==========================================
+ Hits          6366      6366         —
- Misses        1996      1996         —
- Partials         0         0         —

Generated by Codecov Action

@betegon betegon marked this pull request as ready for review February 6, 2026 12:28
@betegon betegon requested a review from BYK February 6, 2026 12:39
@BYK BYK merged commit 636d882 into main Feb 6, 2026
24 checks passed
@BYK BYK deleted the feat/plural-command-aliases branch February 6, 2026 12:47
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