I used the drush cli and the 'cdd ' commands religiously every day. And now they are gone in Drupal 5. I see they were removed in http://drupalcode.org/project/drush.git/commit/700040cfc1410f4bd7bed8fdb... (without a drupal.org issue to discuss). This functionality cannot be replicated with bash completion, nor a use command.
Comments
Comment #1
dave reidNote that this is still referenced via the drupal-directory command:
Comment #2
dave reidAlso cli is referenced in several of the example files.
Comment #3
greg.1.anderson commentedThe docs referenced above should clearly be changed.
I agree that cdd is very useful. In general, command-completion gives a much better user experience than the separate subshell that core-cli provided, but there are a few functions such as cdd that cannot be easily provided as drush commands. Please note, however, that there is a bash function called cdd defined in examples/example.bashrc. This example file has been designed so that you can source it directly from your bashrc. For an example of how I use this file, see:
https://github.com/greg-1-anderson/utiliscripts/blob/master/custom-bashrc
Note that for my shell, I alias cd='cddl', which is like 'cdd' from drush-4.x. The 'cdd' in drush-5.x is enhanced to ssh to the remote server when the alias it is used with is remote.
If you have any suggestions about how we could make this better / more obvious / more accessible to folks, please let me know. I suppose at a minimum, we could put a new version of core-cli in drush-extras (extras-cli?), and have it do nothing more than source the example bashrc file from drush. :)
Comment #4
moshe weitzman commentedFixed help text. We'll add a change notification for `cdd` relation to example.bashrc
Comment #6
moshe weitzman commentedChange notification added