@@ -20,7 +20,7 @@ e end: # stop app
2020echo "stop app"
2121t test: # run all tests or specific test [vars: name]
2222[[ -n \$ (1) ]] && echo "run test \$ (1)" || echo "run test all"
23- tests: # run multiple tests [vars: names ]
23+ tests: # run multiple tests [vars: name1, name2, etc. ]
2424echo "run tests \$ (@)"
2525r repl: # start shell in project environment [vars: env='']
2626echo "start shell in project environment: \$ (env)"
@@ -37,7 +37,7 @@ e end: # stop app
3737t test: # run all tests or specific test [vars: name]
3838 [[ -n \$ (1) ]] && echo "run test \$ (1)" || echo "run test all"
3939
40- tests: # run multiple tests [vars: names ]
40+ tests: # run multiple tests [vars: name1, name2, etc. ]
4141 echo "run tests \$ (@)"
4242
4343r repl: # start shell in project environment [vars: env='']
@@ -105,7 +105,7 @@ function cd-to-nearest-file() { local lower='' upper='' title=''
105105}
106106
107107function main() ( set -euo pipefail
108- local makefile='' buffer='' at='' ws='' rewrite='' cmd=''
108+ local makefile='' buffer='' at='' rewrite='' cmd=''
109109 local arg='' make_args=() cmd_args=() pos_args=() pos_arg_idx=0
110110
111111 # Handle various optional actions:
@@ -124,7 +124,6 @@ function main() ( set -euo pipefail
124124 # Local values:
125125 makefile="$( mktemp ) " # Temporary makefile which we will pass to make.
126126 at="@" # @-prefix causes make to execute commands silently.
127- args=() # Arguments that will be passed on to invoked run command.
128127
129128 # Existing Makefile Compatibility:
130129 # If 'run cmd' or 'make cmd' appears within another command in a Runfile,
@@ -239,10 +238,10 @@ EOF
239238 else
240239 if grep -qE '\$ \([@0-9]\)' "${makefile} "
241240 then
242- echo ' Warning: Your runfile uses positional args $( @) $( 1) $( 2) etc.'
241+ echo " Warning: Your runfile uses positional args \ $ (@) \ $ (1) \ $ (2) etc."
243242 echo "which aren't compatible with Make. You'll need to update these"
244- echo ' commands to accept standard Make-style named arguments:'
245- echo ' $( abc) in your Makefile, passed to task as: $ make task abc=xyz'
243+ echo " commands to accept standard Make-style named arguments:"
244+ echo " \ $ (abc) in your Makefile, passed to task as: $ make task abc=xyz"
246245 echo
247246 fi
248247 print-makefile "${makefile} " > ./Makefile
0 commit comments