Skip to content

lister.debian: Move parameters from `run` method to constructor

This was initially to align the lister's cli with the scheduler's (and it is now).

In the end, still discussing with @douardda, that has also become an alignment on the run method (only the debian one needed changes).

Now no lister pass any parameters to the run command. And those needed parameters are passed to the constructors instead.

And with those changes, the initial goal, be able to run:

swh lister run --lister debian distribution=Debian

is still possible ;)

Test Plan

tox


Migrated from D2217 (view on Phabricator)

Merge request reports