(deps commandregistry.Dependency, pluginCall bool)
| 51 | } |
| 52 | |
| 53 | func (cmd *Restage) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command { |
| 54 | cmd.ui = deps.UI |
| 55 | cmd.config = deps.Config |
| 56 | cmd.appRepo = deps.RepoLocator.GetApplicationRepository() |
| 57 | |
| 58 | // get command from registry for dependency |
| 59 | commandDep := commandregistry.Commands.FindCommand("start") |
| 60 | commandDep = commandDep.SetDependency(deps, false) |
| 61 | cmd.appStagingWatcher = commandDep.(StagingWatcher) |
| 62 | |
| 63 | return cmd |
| 64 | } |
| 65 | |
| 66 | func (cmd *Restage) Execute(c flags.FlagContext) error { |
| 67 | app, err := cmd.appRepo.Read(c.Args()[0]) |
nothing calls this directly
no test coverage detected