snippet

Runs PHP code

Utilização:

drupal snippet [options]

Opções disponíveis

Opção Detalhes
--file Path to the file
--code Code to execute
--show-code Show code after execute

Exemplos

Run using a file.

drupal snippet --file=/path/to/file

Passing code as option.

drupal snippet --code=codeToExecute

Show code executed

drupal snippet --show-code --file=/path/to/file