Skip to content

Add directory and filter parameters to #[AsPathArgument] and #[AsPathOption] attributes#798

Merged
pyrech merged 1 commit intomainfrom
feat-path-argument-directory-and-filter
Mar 19, 2026
Merged

Add directory and filter parameters to #[AsPathArgument] and #[AsPathOption] attributes#798
pyrech merged 1 commit intomainfrom
feat-path-argument-directory-and-filter

Conversation

@JorickPepin
Copy link
Member

Usage:

#[AsTask(description: 'Run Gherkin Tests', aliases: ['behat'])]
function behat(
    #[AsOption(description: 'Stop on first failure', shortcut: 'f')]
    bool $fastFailure = true,
    #[AsPathOption(description: 'Run only this feature', directory: 'tests/features', filter: '*.feature')]
    ?string $feature = null,
): int {
❯ castor qa:behat  --feature [TAB]
admin/       api/         frontend/    

Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

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

Very cool, thanks !

…[AsPathOption]` attributes to improve autocomplete
@JorickPepin JorickPepin force-pushed the feat-path-argument-directory-and-filter branch from 738468e to 0fd6f25 Compare March 19, 2026 14:37
Copy link
Member

@pyrech pyrech left a comment

Choose a reason for hiding this comment

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

Tested on an internal project, it works great, thanks!

@pyrech pyrech merged commit edde117 into main Mar 19, 2026
12 checks passed
@pyrech pyrech deleted the feat-path-argument-directory-and-filter branch March 19, 2026 14:58
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.

3 participants