Open klonos opened 5 years ago
...should things live under /commands/core/views.drush.inc
@serundeputy?
Starting a PR: https://github.com/backdrop-contrib/drush/pull/191
Untested; simply added the current version of the views.druch.inc
file from https://git.drupalcode.org/project/views/blob/7.x-3.x/drush/views.drush.inc, with the following changes:
variable_get()
/variable_set()
with state_get()
/state_set()
I'd probably put it in a new /commands/views
directory (possibly breakout commands into there own files, but I'd have to look at the scope of the commands).
Having said that looks like there is much work to be done and testing in the command implementations.
I'm not sure that variable_*et
--> state_*et
is the right way to go ... usually things that were variables in Drupal are config in Backdrop, but I'd have to do a deep dive into the code here.
In general it is good to have this issue to get the ball rolling on these views commands.
As mentioned in https://github.com/backdrop/backdrop-issues/issues/3729
...to which @quicksketch replied:
PR by @klonos https://github.com/backdrop-contrib/drush/pull/191