Skip to content

feat(compose): add --env-file and --workdir flags#109

Open
771991673 wants to merge 1 commit into
Mcrich23:mainfrom
771991673:feat/env-file-flag
Open

feat(compose): add --env-file and --workdir flags#109
771991673 wants to merge 1 commit into
Mcrich23:mainfrom
771991673:feat/env-file-flag

Conversation

@771991673

Copy link
Copy Markdown

Add --env-file and --workdir/-w as top-level options on ComposeFileOptions, matching Docker Compose CLI semantics. These flags were previously inherited from Flags.Process (the container runtime dependency) which conflated compose-level concerns with container runtime flags.

  • Add --env-file to ComposeFileOptions for specifying alternate .env files
  • Add --workdir/-w to ComposeFileOptions for alternate working directory
  • Remove Flags.Process from ComposeUp, ComposeBuild, ComposeDown
  • ComposeDown no longer needs import ContainerCommands
  • Add 7 parsing tests covering all subcommands and defaults

Add --env-file and --workdir/-w as top-level options on ComposeFileOptions,
matching Docker Compose CLI semantics. These flags were previously inherited
from Flags.Process (the container runtime dependency) which conflated
compose-level concerns with container runtime flags.

- Add --env-file to ComposeFileOptions for specifying alternate .env files
- Add --workdir/-w to ComposeFileOptions for alternate working directory
- Remove Flags.Process from ComposeUp, ComposeBuild, ComposeDown
- ComposeDown no longer needs import ContainerCommands
- Add 7 parsing tests covering all subcommands and defaults

Co-authored-by: Cursor <cursoragent@cursor.com>
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

Successfully merging this pull request may close these issues.

1 participant