Skip to content

Commit

Permalink
Standardize ddev-generated signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jayredfin committed Jul 31, 2023
1 parent 72b3ccd commit cba7e74
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
26 changes: 11 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
[![tests](https://github.com/ddev/drupal-rfs-custom-commands/actions/workflows/tests.yml/badge.svg)](https://github.com/ddev/drupal-rfs-custom-commands/actions/workflows/tests.yml) ![project is maintained](https://img.shields.io/maintenance/yes/2024.svg)
![project is maintained](https://img.shields.io/maintenance/yes/2024.svg)

# drupal-rfs-custom-commands <!-- omit in toc -->
# Redfin Solutions Drupal Commands <!-- omit in toc -->

* [What is drupal-rfs-custom-commands?](#what-is-drupal-rfs-custom-commands)
* [Components of the repository](#components-of-the-repository)
## What is it?

## What is drupal-rfs-custom-commands?
A package of helper commands for `ddev` commonly used when developing Drupal websites.

The addon 'drupal-rfs-custom-commands' was developed to offer DDEV command shortcuts for common actions working with Drupal sites, like enabling/disabling Twig debugging or caching.
## How to install?
DDEV addons can be installed from the command line using the `ddev get` command. For this addon, run `ddev get redfinsolutions/ddev-commands` .

In DDEV addons can be installed from the command line using the `ddev get` command, for example, `ddev get ddev/drupal-rfs-custom-commands` or `ddev get ddev/ddev-drupal9-solr`.

## Components of the repository
## Available commands

* A web command [ctoggle](commands/web/ctoggle) that will enable or disable caching.
* A web command [tdebug](commands/web/tdebug) that will enable or disable Twig debugging.
* A web command [make](commands/web/make) that runs a `make` command inside DDEV.
* A web command [phpunit](commands/web/phpunit) that runs a `make` command inside DDEV.
* A host command [login](commands/host/login) to open a browser to a Drupal site with an admin login.
* A host command [stop-other](commands/host/stop-other) to stop all other running DDEV projects.
* A host command [x](commands/host/x) to execute any command inside DDEV.
* A [docker-compose.drupal-rfs-custom-commands.yaml](docker-compose.drupal-rfs-custom-commands.yaml) file.
* An [install.yaml](install.yaml) file that describes how to install the service or other component.
* A test suite in [test.bats](tests/test.bats) that makes sure the service continues to work as expected.
* [Github actions setup](.github/workflows/tests.yml) so that the tests run automatically when you push to the repository.

**Contributed and maintained by [@CONTRIBUTOR](https://github.com/CONTRIBUTOR) based on the original [ddev-contrib recipe](https://github.com/ddev/ddev-contrib/tree/master/docker-compose-services/RECIPE) by [@CONTRIBUTOR](https://github.com/CONTRIBUTOR)**

**Originally Contributed by [somebody](https://github.com/somebody) in <https://github.com/ddev/ddev-contrib/>
**Based on the original [ddev-contrib recipe](https://github.com/ddev/ddev-contrib/tree/master/docker-compose-services/RECIPE) by [@CONTRIBUTOR](https://github.com/CONTRIBUTOR)**
2 changes: 2 additions & 0 deletions commands/host/login
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

## #ddev generated

## Description: Launch a browser and login to the current Drupal project.
## Usage: login [--name=USER]
## Example: "ddev login" or "ddev login --name=username" or "ddev login --uid=1"
Expand Down
2 changes: 2 additions & 0 deletions commands/host/stop-other
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

## #ddev generated

## Description: Stop all other running projects
## Usage: stop-other
## Example: "ddev stop-other"
Expand Down
5 changes: 4 additions & 1 deletion commands/web/phpunit
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash

## #ddev generated

## Description: Run PHPUnit tests inside the web container.
## Usage: phpunit
## Example: "ddev phpunit" or with additional arguments such as "ddev phpunit --help"
#!/usr/bin/env bash

echo 'Running PHPUnit...'
vendor/bin/phpunit $*
2 changes: 2 additions & 0 deletions commands/web/tdebug
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

## #ddev generated

## Description: Enable or disable Twig debugging
## Usage: tdebug on|off|enable|disable|true|false
## Example: "ddev tdebug" (default is "on"), "ddev tdebug off", "ddev tdebug on"
Expand Down

0 comments on commit cba7e74

Please sign in to comment.