WithDefaultContextStoreConfig configures the cli to use the default context store configuration.
()
| 77 | |
| 78 | // WithDefaultContextStoreConfig configures the cli to use the default context store configuration. |
| 79 | func WithDefaultContextStoreConfig() CLIOption { |
| 80 | return func(cli *DockerCli) error { |
| 81 | cfg := DefaultContextStoreConfig() |
| 82 | cli.contextStoreConfig = &cfg |
| 83 | return nil |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | // WithAPIClient configures the cli to use the given API client. |
| 88 | func WithAPIClient(c client.APIClient) CLIOption { |
no test coverage detected
searching dependent graphs…