Skip to content

feat: add wildcard theme resolution to build and clean commands#150

Merged
dermatz merged 4 commits intomainfrom
feat/buildVendorsAtOnce
Mar 18, 2026
Merged

feat: add wildcard theme resolution to build and clean commands#150
dermatz merged 4 commits intomainfrom
feat/buildVendorsAtOnce

Conversation

@dermatz
Copy link
Collaborator

@dermatz dermatz commented Mar 16, 2026

No description provided.

@dermatz dermatz marked this pull request as ready for review March 18, 2026 14:23
Copilot AI review requested due to automatic review settings March 18, 2026 14:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for wildcard theme codes (e.g., Vendor/*) to the theme build/clean CLI commands by centralizing wildcard expansion in the shared AbstractCommand base class.

Changes:

  • Add AbstractCommand::resolveWildcardThemes() to expand wildcard theme arguments using ThemeList.
  • Apply wildcard resolution in mageforge:theme:build and mageforge:theme:clean.
  • Refine build summary output messaging when no themes were built successfully.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/Console/Command/Theme/CleanCommand.php Resolves wildcard theme arguments before interactive selection / execution.
src/Console/Command/Theme/BuildCommand.php Resolves wildcard theme arguments early; improves build summary messaging.
src/Console/Command/AbstractCommand.php Introduces shared wildcard expansion helper using ThemeList.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 18, 2026 14:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds wildcard theme argument resolution (e.g., Vendor/*) to the theme build and clean CLI commands by introducing a shared helper in AbstractCommand.

Changes:

  • Added AbstractCommand::resolveWildcardThemes() to expand wildcard theme codes to installed theme codes.
  • Updated mageforge:theme:build and mageforge:theme:clean to apply wildcard resolution to provided themeCodes.
  • Improved BuildCommand’s build summary messaging to better reflect whether any themes were built.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/Console/Command/Theme/CleanCommand.php Applies wildcard expansion to themeCodes during theme selection resolution.
src/Console/Command/Theme/BuildCommand.php Applies wildcard expansion early in execution; adjusts build summary output based on success count.
src/Console/Command/AbstractCommand.php Introduces shared wildcard expansion helper using ThemeList.

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 18, 2026
@dermatz dermatz merged commit ec4316d into main Mar 18, 2026
12 checks passed
@dermatz dermatz deleted the feat/buildVendorsAtOnce branch March 18, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Command documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants