Page MenuHomePhorge

Add --filter option to list commands, with a few predefined filters
ClosedPublic

Authored by machniak on May 19 2023, 9:06 AM.
Tags
None
Referenced Files
F12227373: D4316.id12389.diff
Sat, May 18, 8:25 AM
Unknown Object (File)
Wed, May 15, 6:55 AM
Unknown Object (File)
Mon, May 6, 9:32 AM
Unknown Object (File)
Sun, May 5, 12:41 AM
Unknown Object (File)
Apr 17 2024, 10:36 AM
Unknown Object (File)
Apr 17 2024, 10:35 AM
Unknown Object (File)
Apr 17 2024, 10:35 AM
Unknown Object (File)
Apr 15 2024, 4:02 AM
Subscribers
Restricted Project

Details

Summary

php artisan users --attr=email --filter=STATUS:SUSPENDED --filter=MIN-AGE:3M --filter=WITHOUT-PAYMENT

Test Plan

Run the command

Diff Detail

Repository
rK kolab
Branch
dev/artisan-lists-filter
Lint
Lint Skipped
Unit
No Test Coverage
Build Status
Buildable 42851
Build 17225: arc lint + arc unit

Event Timeline

machniak created this revision.
mollekopf subscribed.

Should this filter perhaps also become available for the delete command? Or how would one go about mass deleting/suspending/.... ?

src/app/Console/ObjectListCommand.php
32

Perhaps add all supported syntaxes to the signature so liutauras has a way to find out.

This revision is now accepted and ready to land.May 25 2023, 10:10 AM
This revision was automatically updated to reflect the committed changes.