Open om-ha opened 2 years ago
Hello 👋 You should be able to run multi-line commands in one of the following ways:
|
or >
to define multiline strings. This is standard YAML syntax:scripts:
lint: |
dart format .
dart analyze --fatal-infos
.sh
file:
pubspec.yaml
:
scripts:
lint: "./scripts/lint.sh"
scripts/lint.sh
:
#!/bin/sh
dart format . dart analyze --fatal-infos
I will add an explanation to the readme of the package 👌🏻, Thank you @mbtodorov, for your help and explanation.
Hey there! Great library.
Can you define multiple commands to be run within the same keyword?
Because otherwise we have to do the following which is really not ideal: