Skip to content

Command aliases#1252

Open
gam6itko wants to merge 3 commits intospiral:masterfrom
gam6itko:command-aliases
Open

Command aliases#1252
gam6itko wants to merge 3 commits intospiral:masterfrom
gam6itko:command-aliases

Conversation

@gam6itko
Copy link
Copy Markdown
Contributor

@gam6itko gam6itko commented Apr 14, 2026

Why?

  • Add aliases parameter to #[AsCommand] attribute (src/Console)
  • Propagate aliases through CommandDefinition and apply them via AttributeBasedConfigurator::setAliases()
  • Add --aliases option to the create:command scaffolder command
  • Generate aliases: [...] in the #[AsCommand] of scaffolded classes when aliases are provided

Checklist

  • Closes #
  • Tested
    • Tested manually
    • Unit tests added

github-actions and others added 3 commits April 7, 2026 11:55
- Add `aliases` parameter to `AsCommand` attribute
- Propagate aliases through `CommandDefinition` and `AttributeBasedConfigurator`
- Support `--aliases` option in `create:command` scaffolder command
- Generate `aliases` in `#[AsCommand]` when provided via scaffolder

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.70%. Comparing base (009f751) to head (e8fe387).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1252      +/-   ##
============================================
+ Coverage     89.68%   89.70%   +0.01%     
- Complexity     6698     6700       +2     
============================================
  Files           876      876              
  Lines         18970    18975       +5     
============================================
+ Hits          17014    17022       +8     
+ Misses         1956     1953       -3     

☔ 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.

@butschster butschster requested a review from roxblnfk April 15, 2026 16:46
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