Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be very interesting to be able to render a table based View in the CLI. We already have a nice table renderer (see the pm update command). We'd need to strip_tags() or otherwise do an html => text conversion.
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedI guess the simplest solution is to accept a URI so we can extract arguments and filters and such. would work for Viiews that define a 'Page'. If that is not sufficient, we need a way to pass in arguments and filters.
tracker/1?filter0=2007
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedUltimately, this should ship in Views package as views.drush.inc
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedFor now, drush_views is best place for this.
Comment #4
pescetti CreditAttribution: pescetti commentedThis is a very interesting suggestion, but now Views is developing a built-in Drush interface partially based on Drush Views, see #1096648: Add drush views-export and views-import commands and Drush Views itself will very likely be deprecated: moving this issue to the Views issue queue.