Skip to content

How can I run mutiple command in a task with seperate lines command(array) instead of a string #1462

Answered by milesj
harrytran998 asked this question in Q&A
Discussion options

You must be logged in to vote

@harrytran998 You can use this approach: https://moonrepo.dev/docs/cheat-sheet#run-multiple-watchersservers-in-parallel

And if they need to run in order: https://moonrepo.dev/docs/cheat-sheet#run-dependencies-serially

If they're all system commands (cd, rm, etc), I suggest wrapping them all in a bash script.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@harrytran998
Comment options

Answer selected by harrytran998
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants