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
-
When I read the docs: https://moonrepo.dev/docs/faq#how-to-run-multiple-commands-within-a-task, I only see the way we can run multiple commands with the So how we can do this like command, can use an array, like tasks:
multiple:
command:
- task 1
- task 2
- task 3
- task 4
- task 5
platform: 'system' |
Beta Was this translation helpful? Give feedback.
Answered by
milesj
May 9, 2024
Replies: 1 comment 1 reply
-
@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. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
harrytran998
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.