Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable multiple extends #288

Open
kota65535 opened this issue Dec 25, 2024 · 0 comments
Open

Enable multiple extends #288

kota65535 opened this issue Dec 25, 2024 · 0 comments

Comments

@kota65535
Copy link

kota65535 commented Dec 25, 2024

Feature Request

Currently, we can specify only one extends per file.
It would be helpful if we can specify multiple files in extends to combine multiple process-compose files into one.

Use Case:

Composition over inheritance

Currently, we can reuse code by inheritance using the extends keyword.
If multiple extends is available, we can do it by composition.

Depending on multiple process-compose files

Thanks for resolving #278, I could start to use this tool in monorepo.
For now, the package dependencies are so simple (server -> db) that a single extends keyword is sufficient.
We can handle more dependencies if multiple extends is allowed.

Proposed Change:

Let's make extends keyword to accept an array.

extends:
  - ../db/process-compose.yaml
  - ../lib/process-compose.yaml

Who Benefits From The Change(s)?

Users using extends keywords, especially working with monorepos.

Alternative Approaches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant