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

refactor!: get rid of associated type ImageArgs and rename to cmd #649

Merged
merged 5 commits into from
Jun 10, 2024

Commits on Jun 10, 2024

  1. refactor!: get rid of associated type for ImageArgs

    - really common pattern is to use `Vec<String>`
    - `args` isn't the best term, because in fact it's Docker's [CMD](https://docs.docker.com/reference/dockerfile/#cmd)
    - it was not aligned with existing `ExecCommand`
    - current interface is confusing and users struggle with it
    - essentially it should be closer to the current representation of environment variables and other parameters
    - new implementation allows to override args regardless of underlying type
    - it's still will be possible to use custom strict arguments type for particular image which can be converted to list of strings if users want
    
    Dependent PR to modules: testcontainers/testcontainers-rs-modules-community#143
    DDtKey committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    65572ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    14b0e46 View commit details
    Browse the repository at this point in the history
  3. docs: fix

    DDtKey committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    daec9c5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bf4c640 View commit details
    Browse the repository at this point in the history
  5. docs: fix

    DDtKey committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    7b0d455 View commit details
    Browse the repository at this point in the history