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)
Mon, Apr 15, 4:02 AM
Unknown Object (File)
Sat, Apr 13, 5:36 AM
Unknown Object (File)
Mon, Apr 8, 4:08 AM
Unknown Object (File)
Fri, Apr 5, 12:02 AM
Unknown Object (File)
Wed, Apr 3, 1:17 PM
Unknown Object (File)
Wed, Apr 3, 1:17 PM
Unknown Object (File)
Wed, Apr 3, 1:17 PM
Unknown Object (File)
Mon, Apr 1, 3:55 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.