IIRC the cdd syntax might of changed a couple of versions ago, so forgive me if I just don't know the right syntax. I used to use "cdd @site modulename" to change to the module directory within one of my sites. Looking at function cdd() in core.drush.inc, this is obviously no longer supported. Would you accept a patch similar to the one attached, to allow for this syntax?

Thanks!

CommentFileSizeAuthor
#1 1359040-drush-cdd-site-file.patch548 bytesdouggreen

Comments

douggreen’s picture

StatusFileSize
new548 bytes

patch attached

greg.1.anderson’s picture

Status: Active » Needs work

Note that the core-cli command was removed in drush-5.x, to be replaced by a superior autocomplete scheme + a new set of example bash aliases in examples/example.bashrc. The cdd function still exists in this new location.

I don't feel too strongly about this change one way or the other. I suppose it could go in if others wanted it; shouldn't hurt anything for folks who don't use it. Would need to be rerolled for master, though.

douggreen’s picture

Should I upgrade to Drush 5.x if I'm using D7?

greg.1.anderson’s picture

No, it is not necessary to upgrade to Drush 5.x to use d7; Drush 4 also supports D7.

greg.1.anderson’s picture

Version: 7.x-4.5-rc1 » 8.x-6.x-dev
Status: Needs work » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If this feature is still desired, you may copy it to our Github project. For best results, create a Pull Request that has been updated for the master branch. Post a link here to the PR, and please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.