Searching elements within a list.

IDC uses a custom version of drush_choice() and drush_choice_multiple() to add some DX Features on top of them. One of those improvements is the ability to search specific items within a list (single choice, or multiple choice).

Imagine you have a long list ( > 50 items) and you're prompted to select one or more values of that list.
Imagine you're looking for values that contain a similar string in the label (e.g: "field_article_").

Instead of entering them one by one, you can filter the list by that string.

Enter

Selecting Multiple Values of a list.

IDC uses a custom version of drush_choice() and drush_choice_multiple() to add some DX Features on top of them.

For Multiple Choice lists, developers can select / deselect multiple items at once in 2 ways (besides, of course, the normal selection by entering just one value in the CLI).

Using the IDC Module

IDC is a small module built on top of Drush (yet as a separate tool) that simplifies the process of creating Interactive Drush commands made of different steps, some of which might depend on data entered by the user on previous steps.

Since it overrides some of Drush's default behaviour to prompt the user for input, and adds some features on top of it, this page (and child pages) will serve to document any non-obvious features or instructions of use.

Command Line Tips for Starter Kits

Using the Command Line to install or upgrade the Starterkit may require you to take an extra step to change and reset permissions on the sites folder and settings.php file.

DURING DRUPAL INSTALLATION:

Advanced debugging of Drupal core using the command line (strace & tcpdump)

Basics

Debugging of Drupal was never easy, until you know the right tools and how to use them.

There are plenty of alternative debugging methods using some popular PHP libraries XDebug, XHProf, NuSphere PhpED, etc. and also most of the IDE have already built-in step-by-step debugger.

Working with Drush on Mamp

The current version of MAMP may require some troubleshooting to get Drush to work correctly. Known issues include:

Pages

Subscribe with RSS Subscribe to RSS - command line