with drush ctools-export-info you can easily see a list of all exportables.
I think it would be great if you could include a list of exportables wanted as an argument to drush ctools-export
If you have a lot of exportables it would be easier to choose then to go through and deselect many items in the select method
I might also be useful to have a deselect all option in the select screens.
[0] : cancel
[1] : deselect all
[2] : ...
...
[10] : done
if the deselect all would toggle to select all if none where selected that would be even better.
The potential of this addition to ctools is great these extras might help make it easy to use efficiently.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1498986-3.patch | 754 bytes | swentel |
Comments
Comment #1
damiankloip commentedMe and @swentel have discussed this stuff and agree it is something needed. The main question is how do we implement this on the command line? The current format relies on declaring the table name and then the exportables (for commands like ctools-export-view for example). A method like this wouldn't work on the command line as we would have no way of telling which was which. Or... Do we go another way where we create an info like file that is read to do this?
The idea to 'deselect all' is a good one I think, the thought has crossed my mind before.
Comment #2
swentel commentedI've looked into adding a (de)select all option, but that's sadly not possible at this moment with drush_choice_multiple(). That could actually be a feature request for drush, for which I've created an issue at http://drupal.org/node/1503366.
Still haven't really though about the command line arguments, I'm going to investigate if we can't use the bash autocomplete functionality for this. More on this later!
Comment #3
swentel commentedThere's a patch for drush now at http://drupal.org/node/1503366#comment-5786870.
Attached is that patch that uses this (de)select all button.