Multi-line commands #837
Labels
💣 breaking
Breaks something in the api or config
✨ enhancement
Feature request
👋 good first issue
Good for newcomers
Problem description
I want to get rid of our
justfile
and replace it with pixi commands. One thing preventing this is the lack of multiline commands.Consider this
justfile
script:If I want to translate it into
pixi.toml
it will turn into something like:This is okay, but has several shortcomings:
A) its syntax is somewhat ugly
B) it still execute as one big blob
C) it is not obvious to the reader that any extra argument to the script is piped to
scripts/lint.py
in this caseProposal
I suggest that each new line is considered its own command, with an implicit
&&
between them:Pixi will execute each command in order, and at any failure it would abort (like
set -e
in bash).Moreover, pixi would print each command before executing it (like
set -x
in bash).So the output of could be somethng like:
Furthermore, I would suggest that the implicit "pass extra arguments to the command" feature would NOT be applied in the multi-command mode.
The text was updated successfully, but these errors were encountered: