gabrieldemarmiesse / python-on-whales

An awesome Python wrapper for an awesome Docker CLI!
MIT License
537 stars 100 forks source link

Set up command construction to support generic iterables and mappings #595

Closed LewisGaul closed 3 months ago

LewisGaul commented 3 months ago

First step in working on https://github.com/gabrieldemarmiesse/python-on-whales/issues/584.

Next step is to tidy up the components' code that constructs commands, allowing arguments to be Iterable and Mapping in place of List and Dict. With these changes it should be fairly straightforward, simply calling the correct method on the Command class.

Here's an example of what upcoming changes look like: https://github.com/LewisGaul/python-on-whales/compare/command-construction...command-construction-image