Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chain commands #5235

Closed
DieterHolvoet opened this issue Sep 16, 2022 · 2 comments
Closed

Add chain commands #5235

DieterHolvoet opened this issue Sep 16, 2022 · 2 comments

Comments

@DieterHolvoet
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Drupal Console has a very interesting chain command feature:

A chain command is a custom command that help you automate multiple command execution, allowing you to define and read an external YAML file containing the definition name, options and arguments of multiple commands and execute that list based on the sequence defined in the file.

https://drupalconsole.com/docs/en/chains/what-is-a-chain-command/

Since the Drupal Console project is basically abandoned, we could leverage their code for this feature.

Describe the solution you'd like
Add the same/similar functionality to Drush.

Describe alternatives you've considered
Until now I have declared chained commands in code using a custom trait (example). An approach like this, instead of declaring the command chains in YAML, would also be okay for me. The maintainers of consolidation/annotated-command have also shown an interest in a feature like this (source).

Additional context
/

@greg-1-anderson
Copy link
Member

I think this feature would be best added at the Robo or Annotated Command library level. Regarding syntax, I think I would favor the mixed yaml / shell syntax popular with tools like Circle CI et. al. rather than the longer form that Drupal Console used, where yaml lists are used for each option.

@weitzman
Copy link
Member

I reopened #2943. Lets discuss there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants