process-compose icon indicating copy to clipboard operation
process-compose copied to clipboard

Add --detach option for the `up` command to launch processes in the background

Open jgoux opened this issue 1 year ago • 0 comments

Hello 👋,

Feature Request

I'd like to be able to launch process-compose up in the background, without any logs being printed to the current terminal.

Use Case:

I'm interested in this feature in the context of CI. I'm using devenv to bootstrap my infrastructure, and devenv now relies on process-compose to handle multiple services (for example PostgreSQL).

I read that sending processes in the background was doable since v1.0.0 but it needs to be done within the terminal UI. In my case I don't want to interact with the terminal UI at all.

Proposed Change:

Add a --detach / -d option to process-compose up to send it to the background.

It would be similar to docker-compose up --detach: https://docs.docker.com/reference/cli/docker/compose/up/

Who Benefits From The Change(s)?

I guess everyone who launches process-compose in a non-interactive environment?

Alternative Approaches

jgoux avatar Mar 27 '24 20:03 jgoux