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
Unknown Object (File)
Tue, Jun 25, 5:20 PM
Unknown Object (File)
Tue, Jun 25, 8:20 AM
Unknown Object (File)
Sun, Jun 23, 3:54 AM
Unknown Object (File)
Sat, Jun 22, 7:54 PM
Unknown Object (File)
Sat, Jun 22, 6:07 PM
Unknown Object (File)
Thu, Jun 20, 7:50 PM
Unknown Object (File)
Thu, Jun 20, 7:39 PM
Unknown Object (File)
Mon, Jun 17, 8:34 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.