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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TravisCarden’s picture

Title: Drush implementation of SEO Checklist » Add Drush command(s)
Project: SEO Checklist » Checklist API
Version: 7.x-4.1 » 7.x-1.x-dev

Thanks 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 and drush checklistapi-show <checklist-id> commands to begin with. Is that in line with what you're thinking?

ergonlogic’s picture

It'd be neat if we could also update task completion via Drush. Something like: drush checklistapi-update <checklist-id> --complete=task2,task4,task7

itarato’s picture

Status: Active » Needs review
FileSize
2.57 KB

Here 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

TravisCarden’s picture

Thanks, @itarato! I'll take a look at this as soon as I have a minute.

  • TravisCarden committed a859e0d on 7.x-1.x
    Issue #2127581 by TravisCarden, itarato | codi: Added capi-list Drush...
TravisCarden’s picture

I added a checklistapi-list command for starters. I refactored it to correspond to the Checklists report. It uses drush_format_table(), which is only available in Drush 6 or later. It should be in the dev build in a few hours. Feedback welcome.

$ drush capi-list -h
Get an overview of your installed checklists with progress details.

Aliases: capi-list

$ drush capi-list
 Checklist              Progress        Last updated             Last updated by 
 Checklist API example  19 of 25 (76%)  Sun, 08/03/2014 - 12:04  admin           
TravisCarden’s picture

Status: Needs review » Needs work

  • TravisCarden committed 74172e2 on 7.x-1.x
    Issue #2127581 by TravisCarden: Added capi-info Drush command.
    
TravisCarden’s picture

Title: Add Drush command(s) » Add Drush commands
Assigned: codi » Unassigned
Status: Needs work » Patch (to be ported)

I'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.

$ drush capi-info -h
Show detailed info for a given checklist.

Arguments:
 checklist     The checklist machine name, e.g., "example_checklist".

Aliases: capi-info, capii

$ drush capi-info example_checklist
This checklist based on sun's modification of Dries Buytaert's Drupal learning curve is an example implementation of the Checklist API.

Last updated Thu, 08/21/2014 - 02:00 by admin
19 of 25 (76%) complete

I suck:
 [x] Installation and configuration of Drupal core - Completed 08/21/2014 - 02:00 by admin
 [x] Node system - Completed 08/21/2014 - 02:00 by admin
 [x] Block system - Completed 08/21/2014 - 02:00 by admin
 [x] Users, roles and permissions - Completed 08/21/2014 - 02:00 by admin
 [x] Installing contributed themes and modules - Completed 08/21/2014 - 02:00 by admin

I get by:
 [x] Upgrading, patching, (security) monitoring - Completed 08/21/2014 - 02:00 by admin
 [x] Navigation, menus, taxonomy - Completed 08/21/2014 - 02:00 by admin
 [x] Locale and internationalization - Completed 08/21/2014 - 02:00 by admin
 [x] Drastically customize front page - Completed 08/21/2014 - 02:00 by admin
 [x] Theme and template modifications - Completed 08/21/2014 - 02:00 by admin

I kick butt:
 [x] Contributing documentation and support - Completed 08/21/2014 - 02:00 by admin
 [x] Content types and views - Completed 08/21/2014 - 02:00 by admin
 [x] Actions and workflows - Completed 08/21/2014 - 02:00 by admin
 [x] jQuery, Form API, theme and module development - Completed 08/21/2014 - 02:00 by admin
 [x] Contributing code, designs and patches back to Drupal contrib - Completed 08/21/2014 - 02:00 by admin
 [x] Drupal consultant or working for a Drupal shop - Completed 08/21/2014 - 02:00 by admin

I'm a core contributor:
 [x] Contribute code and patches to Drupal core - Completed 08/21/2014 - 02:00 by admin
 [x] Write unit tests to get own patch committed. - Completed 08/21/2014 - 02:00 by admin
 [x] Review other people's core patches, understanding coding standards. - Completed 08/21/2014 - 02:00 by admin
 [ ] Security audits, performance tuning.

I'm trustworthy for core maintainership:
 [ ] Rewrite or add a Drupal core sub-system.
 [ ] Sub-system maintainer.
 [ ] Core branch maintainer

I know every bit of core:
 [ ] I'm chx.

I understand all implications of a core patch:
 [ ] I'm Chuck Norris.
TravisCarden’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev

Version 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.

TravisCarden’s picture

Status: Patch (to be ported) » Fixed

Fixed: 45c7e8a.

Status: Fixed » Closed (fixed)

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