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

dave reid’s picture

Note that this is still referenced via the drupal-directory command:

dave@XPS410:~/Dropbox/Projects/drupal7dev$ drush drupal-directory --help
Return the filesystem path for modules/themes and other key folders. Used by `cli` command for handy commands `cdd` and `lsd`. If you want to use this command directly, you usually want to prefix the command
with cd and enclose the command invocation in backticks. See Examples below.
dave reid’s picture

Also cli is referenced in several of the example files.

greg.1.anderson’s picture

The 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. :)

moshe weitzman’s picture

Status: Active » Fixed
Issue tags: +Needs change record

Fixed help text. We'll add a change notification for `cdd` relation to example.bashrc

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

moshe weitzman’s picture

Issue tags: -Needs change record

Change notification added