(opts *InstallOptions, host *registry.AgentHost, scope registry.Scope, gitRoot, homeDir string)
| 1008 | } |
| 1009 | |
| 1010 | func resolveInstallDir(opts *InstallOptions, host *registry.AgentHost, scope registry.Scope, gitRoot, homeDir string) (string, error) { |
| 1011 | if opts.Dir != "" { |
| 1012 | return opts.Dir, nil |
| 1013 | } |
| 1014 | return host.InstallDir(scope, gitRoot, homeDir) |
| 1015 | } |
| 1016 | |
| 1017 | func formatPlanHosts(hosts []*registry.AgentHost) string { |
| 1018 | names := make([]string, len(hosts)) |
no test coverage detected