Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
when doing:
drush autoadmin generate
--write
this message will appear:
// DEPRECATED: Allow command names to contain spaces.
// This feature will be removed shortly; drush-3 will
// require commands to be named with dashes instead of
// spaces (e.g. “cache-clear” instead of “cache clear”).
// During the transition period, uncomment the line below
// to allow commands with spaces to be used.
it was necessary to enable spaces in commands for a while by setting "allow-spaces-in-commands" in my drush configuration file.
best regards.
Comment | File | Size | Author |
---|---|---|---|
#2 | dashes-on-command-names.patch | 2.64 KB | fcedillo |
#3 | dashes-on-command-names.patch | 2.64 KB | fcedillo |
Comments
Comment #1
DevElCuy CreditAttribution: DevElCuy commentedConfirmed, got same issue.
Comment #2
fcedillo CreditAttribution: fcedillo commentedignore this comment and attachment
Comment #3
fcedillo CreditAttribution: fcedillo commentedI think the solution is to work on /modules/autoadmin/drush/autoadmin.drush.inc file
On line 41, I replace the following:
$items['autoadmin generate'] = array(
with:
$items['autoadmin-generate'] = array(
And results of drush autoadmin-generate bands bands countries --write command were as expected.
Below this comment you can find the patch to transform the autoadmin commands names to commands named with dashes.
Comment #4
_rune CreditAttribution: _rune commentedHi
Thx for the patch! Am on windsurfing class in Croatia a.t.m. and did only bring my phone. Sorry for being so slow with fixing this little issue! Back in a week.
Cheers
Rune
Comment #5
_rune CreditAttribution: _rune commentedThx a lot, have applied the patch to my checkout, will commit a new version of Auto Admin later today and update the docs accordingly. Sorry for slowness!
If you want CVS access, let me now!
Cheers
Rune
Comment #6
fcedillo CreditAttribution: fcedillo commentedhi _rune, let me help applying the patches. i would like CVS access for committing changes on patches :)
Comment #7
_rune CreditAttribution: _rune commentedThats super! Granting you access now.