Skip to content

Commit 15c9942

Browse files
NickWildejrockowitz
NickWilde
authored andcommitted
Issue #2916800 by jrockowitz, Grimreaper, NickWilde: Drush 9 support
1 parent 5182546 commit 15c9942

13 files changed

+2359
-932
lines changed

Diff for: composer.json

+23-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
{
2-
"name": "drupal/webform",
3-
"description": "Enables the creation of webforms and questionnaires.",
4-
"type": "drupal-module",
5-
"license": "GPL-2.0+",
6-
"minimum-stability": "dev",
7-
"homepage": "https://drupal.org/project/webform",
8-
"authors": [
9-
{
10-
"name": "Jacob Rockowitz (jrockowitz)",
11-
"homepage": "https://www.drupal.org/u/jrockowitz",
12-
"role": "Maintainer"
13-
}
14-
],
15-
"support": {
16-
"issues": "https://drupal.org/project/issues/webform",
17-
"source": "http://cgit.drupalcode.org/webform"
2+
"name": "drupal/webform",
3+
"description": "Enables the creation of webforms and questionnaires.",
4+
"type": "drupal-module",
5+
"license": "GPL-2.0+",
6+
"minimum-stability": "dev",
7+
"homepage": "https://drupal.org/project/webform",
8+
"authors": [
9+
{
10+
"name": "Jacob Rockowitz (jrockowitz)",
11+
"homepage": "https://www.drupal.org/u/jrockowitz",
12+
"role": "Maintainer"
1813
}
14+
],
15+
"support": {
16+
"issues": "https://drupal.org/project/issues/webform",
17+
"source": "http://cgit.drupalcode.org/webform"
18+
},
19+
"extra": {
20+
"drush": {
21+
"services": {
22+
"drush.services.yml": "^9"
23+
}
24+
}
25+
}
1926
}

Diff for: docs/DRUSH-COMMANDS.md

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
Steps for testing Drush 8.x and 9.x commands
2+
--------------------------------------------
3+
4+
# Drush 8.x and below
5+
6+
```bash
7+
# Version.
8+
drush --version
9+
10+
# Help.
11+
drush help --filter=webform
12+
13+
# Submissions.
14+
drush webform-generate contact
15+
drush webform-export contact
16+
drush webform-purge -y contact
17+
18+
# Option.
19+
drush webform-generate --entity-type=node --entity-id={ENTER_NID} contact
20+
drush webform-export --delimiter="\t" --header-format="key" contact
21+
22+
# Libraries.
23+
drush webform-libraries-status
24+
drush webform-libraries-remove
25+
drush webform-libraries-download
26+
drush webform-libraries-make
27+
drush webform-libraries-composer
28+
29+
# Tidy.
30+
drush webform-tidy
31+
32+
# Repair.
33+
drush webform-repair -y
34+
35+
# Docs.
36+
drush en -y readme
37+
drush webform-docs
38+
39+
# Composer.
40+
drush webform-composer-update
41+
42+
# Commands.
43+
drush webform-generate-commands
44+
```
45+
46+
# Drush 9.x and above
47+
48+
```bash
49+
# Version.
50+
drush --version
51+
52+
# Help.
53+
drush list --filter=webform
54+
55+
# Submissions.
56+
drush webform:generate contact
57+
drush webform:export contact
58+
drush webform:purge -y contact
59+
60+
# Options.
61+
drush webform:generate --entity-type=node --entity-id={ENTER_NID} contact
62+
drush webform:export --delimiter="\t" --header-format=key contact
63+
64+
# Libraries.
65+
drush webform:libraries:status
66+
drush webform:libraries:remove
67+
drush webform:libraries:download
68+
drush webform:libraries:make
69+
drush webform:libraries:composer
70+
71+
# Tidy.
72+
drush webform:tidy
73+
74+
# Repair.
75+
drush webform:repair -y
76+
77+
# Docs.
78+
drush en -y readme
79+
drush webform:docs
80+
81+
# Composer.
82+
drush webform:composer:update
83+
84+
# Commands.
85+
drush webform:generate:commands
86+
```

Diff for: drush.services.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
webform.commands:
3+
class: \Drupal\webform\Commands\WebformCommands
4+
arguments: ['@webform.cli_service']
5+
tags:
6+
- { name: drush.command }

0 commit comments

Comments
 (0)