You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If whitespace was trimmed (start and end of string) from the run field, then it would make it more convenient/readable to use multi-line scripts in tasks, e.g.
[tasks.test]
run = '''printf 'args:\n'printf ' - %s\n' "$@"'''
which yields:
$ mise run test a b c
[test] $ printf 'args:\n'
args:
-
sh: line 2: a: command not found
[test] ERROR task failed
note: If I put the first command on the first line, this does work but it's a bit harder to read:
[tasks.test]
run = '''printf 'args:\n'printf ' - %s\n' "$@"'''
yielding:
$ mise run test a b 'c d'
[test] $ printf 'args:\n'
args:
- a
- b
- c d
(also, only the first line of the command is shown, which is probably unnecessary)
The text was updated successfully, but these errors were encountered:
If whitespace was trimmed (start and end of string) from the
run
field, then it would make it more convenient/readable to use multi-line scripts in tasks, e.g.which yields:
note: If I put the first command on the first line, this does work but it's a bit harder to read:
yielding:
(also, only the first line of the command is shown, which is probably unnecessary)
The text was updated successfully, but these errors were encountered: