mirror of https://github.com/hashicorp/terraform
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.pull/23956/head
parent
2672ddba02
commit
e9d0822b2a
Loading…
Reference in new issue