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.
Would love to see this work as a stand alone drush command. I'll start work on it, but wanted to post to see if anyone else has done or would have interest in it.
Comment | File | Size | Author |
---|---|---|---|
#3 | checklistapi-drush-command-2127581-3.patch | 2.57 KB | itarato |
Comments
Comment #1
TravisCarden CreditAttribution: TravisCarden commentedThanks for the interest, @codi. I've actually been toying with the idea of Drush commands myself. Let's add them to Checklist API module so that all implementing modules can benefit from it. I'm the maintainer of that project, so feel free to reach out for direction as you go. I'm imagining
drush checklistapi-list
anddrush checklistapi-show <checklist-id>
commands to begin with. Is that in line with what you're thinking?Comment #2
ergonlogicIt'd be neat if we could also update task completion via Drush. Something like:
drush checklistapi-update <checklist-id> --complete=task2,task4,task7
Comment #3
itarato CreditAttribution: itarato commentedHere you are an initial innocent drush file:
- drush checklistapi-list: listing all available checklist
- drush checklistapi-status ID: show the status of a requested checklist
Comment #4
TravisCarden CreditAttribution: TravisCarden commentedThanks, @itarato! I'll take a look at this as soon as I have a minute.
Comment #6
TravisCarden CreditAttribution: TravisCarden commentedI added a
checklistapi-list
command for starters. I refactored it to correspond to the Checklists report. It usesdrush_format_table()
, which is only available in Drush 6 or later. It should be in the dev build in a few hours. Feedback welcome.Comment #7
TravisCarden CreditAttribution: TravisCarden commentedComment #9
TravisCarden CreditAttribution: TravisCarden commentedI've added a
capi-info
command now. It should be in the dev build in a few hours. If no one reports any problems with this, I'll roll a release with it soon. Then we'll want to forward port this to Drupal 8.Comment #10
TravisCarden CreditAttribution: TravisCarden commentedVersion 7.x-1.2 has been released with the new Drush commands. Feedback still welcome. This issue will now focus on forward porting the commands to Drupal 8.
Comment #11
TravisCarden CreditAttribution: TravisCarden commentedFixed: 45c7e8a.