In order to have Drush support we will need somehow to implement support for dialogues into the JS and to the module code. Example:
Are you sure you want to download abc module? Y/n.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | terminal-0.4.17-prompt-y-n.zip | 1.09 KB | hkirsman |
Comments
Comment #1
snufkin commentedRelevant issue on jquery.com: http://plugins.jquery.com/node/8368
Comment #2
greg.1.anderson commentedThis may be a somewhat extreme solution, but perhaps you should consider using Gate One instead of the jQuery Terminal as your main engine. I haven't tried it, but it sounds promising. See:
http://vimeo.com/24857127
Comment #3
hkirsman commented"Gate One" is crazy application. In a great way! :)
Only drawback would be that it's using Pyhton but if you want to use drush, you must have access to console.
My solution for the y/n problem would be that before sending off the command to php, javascript should ask y or n and update the command. I posted this question on github: https://github.com/jcubic/jquery.terminal/issues/45 No response yet.
Somebody somewhere suggested that -y would be always on.
Comment #4
hkirsman commentedjcubic responded very quickly giving an example:
I modified it a little. There's a demo attached to this post.