(deps commandregistry.Dependency, _ bool)
| 45 | } |
| 46 | |
| 47 | func (cmd API) SetDependency(deps commandregistry.Dependency, _ bool) commandregistry.Command { |
| 48 | cmd.ui = deps.UI |
| 49 | cmd.config = deps.Config |
| 50 | cmd.endpointRepo = deps.RepoLocator.GetEndpointRepository() |
| 51 | return cmd |
| 52 | } |
| 53 | |
| 54 | func (cmd API) Execute(c flags.FlagContext) error { |
| 55 | if c.Bool("unset") { |
nothing calls this directly
no test coverage detected