I have added the ability to do views bulk exports to the module. By using the command 'drush sm bulkexport /path/to/module module_name' the user can create the necessary file used by the bulk export module to create default views.
Currently, you can only bulk export views based on tag groups. The user is given a list of tags to choose from (only one can be chosen currently) and views with those tags get exported to the file (or stdout).
This is extremely useful for managing a set of views in a revision control system. While I'm not 100% sure these features fit with drush_sm.module, it seems a likely place for them.
I have applied the patch to the current head, but built it on the current release version. I believe I made all the appropriate changes, but as I have never used cvs before, I may have made a mistake in the implementation. Apologies in advance if this is the case. Hopefully you will find this a useful addition to the module.
| Comment | File | Size | Author |
|---|---|---|---|
| drush_sm.module.gz | 3.43 KB | dalinian |
Comments
Comment #1
clemens.tolboomI'm not sure about your intend.
I patch drush_sm a little in that drush sm-views-export now accepts a dir and a list of module names
With
drush sm-export-views /tmp og cases > module_nameyou get the exported view(s) into your file.Is that the feature you want?