• Martin Atkins's avatar
    command: Accept a "provider source" from the main package · e9d0822b
    Martin Atkins authored
    Following the same approach we use for other CLI-Config-able objects like
    the service discovery system, the main package is responsible for
    producing a suitable implementation of this interface which the command
    package can then use.
    
    When unit testing in the command package we can then substitute mocks as
    necessary, following the dependency inversion principle.
    e9d0822b