feat: add compose pull command support#238
Conversation
Add `ComposePullCommand` with options for ignore-buildable, ignore-pull-failures, include-deps, pull policy and quiet mode
d32b439 to
1a182c8
Compare
|
Nice, thanks for this! One thing to address before merging: there's already a PullPolicy enum defined in Could you reuse the existing PullPolicy from create.rs instead of defining a new one? Maybe it makes sense to move it up to the top level compose.rs since its used in > 1 place now ... |
I decided introduce a new one because according to the doc it has only 2 options: Always | Missing. It doesn't support Never. |
|
@joshrotenberg wdyt would be the best option to proceed around PullPolicy enum? |
|
Fair point -- you're right that |
fixed |
|
Merged, 0.11.1 is running now. Thanks again! |
Summary
While rewriting shell scripts to a Rust TUI, I was using
docker-wrapperand encountered the need for acompose pullcommand.ComposePullCommandwith builder pattern matching existing compose commands--ignore-buildable,--ignore-pull-failures,--include-deps,--policy,--quietPullPolicyenum(Always, Missing)for type-safe policy selectionReference: Docker Compose Pull docs