https://github.com/drupal-code-builder/drupal-code-builder-drush
Drush commands for Drupal Code Builder. Use the branch that matches the Drush version.
https://github.com/drupal-code-builder/drupal-code-builder-drush
Last synced: 12 days ago
JSON representation
Drush commands for Drupal Code Builder. Use the branch that matches the Drush version.
- Host: GitHub
- URL: https://github.com/drupal-code-builder/drupal-code-builder-drush
- Owner: drupal-code-builder
- Created: 2017-08-22T13:52:34.000Z (over 8 years ago)
- Default Branch: 10.0.x
- Last Pushed: 2024-02-19T11:23:41.000Z (almost 2 years ago)
- Last Synced: 2024-05-20T10:04:16.213Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 232 KB
- Stars: 13
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a set of Drush commands for generating code with the Drupal Code Builder
library (https://github.com/drupal-code-builder/drupal-code-builder).
## Installation
Install this command with Composer:
`composer require drupal-code-builder/drupal-code-builder-drush`
## Setup
Once this is installed, do `drush cb:update`. This detects hooks, services, and plugin
types in your Drupal site's codebase and analyses them for use with Drupal Code
Builder.
## Usage
The following commands are available:
- `drush cb:list`: Lists all the hooks, services, and plugins that Drupal Code
Builder has detected in your Drupal site's codebase.
- `drush cb:update`: Updates the stored definitions of Drupal hooks, services
and plugin types.
- `drush cb:module`: Creates a module, or adds components to one.
## A note on history
Commits in this repository older than 2017-08-22 are extracted from other
repositories that originally were the home of this command file: the drupal.org
module_builder project, and a drush fork.
They were extracted using git filter-branch, and reconstituted into a single
history with git graft and git filter-branch.
Version numbers start at 8.0.0 because the initial numbering scheme matched with
Drush major version numbers, in the pre-Composer, pre-Semver era.