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
The contextmanager alfred.parallel allow a developper to run multiple commands simulatneously and in a single terminal. It's useful to run fullstack apps, for example to run npm, fastapi and a database in same time.
When the user interrupts a command with CTRL+C, all commands that are currently executing are interrupted. If it is another signal as sigquit, it is forwarded to the commands being executed by alfred.
Log messages are prefixed with the command name in square brackets like in docker-compose to be able to track what is happening.
[front] 2022-12-01 12:56:54 hello world
usage
The developer declare the commands to be executed simultaneously in an alfred.parallel context block. Each of the commands will run independently of each other.
The commands are waited for indefinitely before exiting the alfred.parallel block. It is possible to disable this behavior and explicitly check the end of a command by setting the attribute wait to False. The instruction wait allow to wait the end of a command explicitely.
The contextmanager
alfred.parallel
allow a developper to run multiple commands simulatneously and in a single terminal. It's useful to run fullstack apps, for example to run npm, fastapi and a database in same time.When the user interrupts a command with CTRL+C, all commands that are currently executing are interrupted. If it is another signal as sigquit, it is forwarded to the commands being executed by alfred.
Log messages are prefixed with the command name in square brackets like in docker-compose to be able to track what is happening.
usage
The developer declare the commands to be executed simultaneously in an
alfred.parallel
context block. Each of the commands will run independently of each other.The commands are waited for indefinitely before exiting the
alfred.parallel
block. It is possible to disable this behavior and explicitly check the end of a command by setting the attributewait
toFalse
. The instructionwait
allow to wait the end of a command explicitely.alfred commands can be invoked in an
alfred.parallel
block.The text was updated successfully, but these errors were encountered: