jigarius / drall

A tool to run drush commands on multi-site Drupal installations.
GNU General Public License v3.0
33 stars 5 forks source link

Option to run Drall in quiet mode, say, --drall-quiet #91

Open darthsteven opened 4 months ago

darthsteven commented 4 months ago

At the moment, I'm trying to us drall to get a nice list of the sites that it has detected and is going to run commands on, doing something like this:

echo "Listing known unique sites:"
drall exec --drall-no-progress 'echo "* @@ukey"'

and hoping for the output:

Listing known sites:
* www.example.com
* www.something.se

Whereas I actually get:

Listing known sites:
Finished: www.example.com
* www.example.com
Finished: www.something.se
* www.something.se

I was wondering if you'd consider introducing a 'quiet' option to the command, so that I could silence those lines that start with Finished:?

jigarius commented 4 months ago

I'll take a look at this after I stabilize Drall v3. In the meantime, have you considered using drall site:directories or drall site:keys? For all the commands that exist, please see drall list.

darthsteven commented 4 months ago

Sure, okay, that could work, if there was a way to exclude the duplicates from drall site:keys.

jigarius commented 4 months ago

See if --drall-filter can help, e.g. drall --drall-filter=foo site:keys.

darthsteven commented 4 months ago

I've sorted it in another way. I'd argue that an option on drall site:keys that sets the unique option would be useful.