(opts *InstallOptions, host *registry.AgentHost, scope registry.Scope, gitRoot, homeDir string)
| 1022 | } |
| 1023 | |
| 1024 | func resolveInstallDir(opts *InstallOptions, host *registry.AgentHost, scope registry.Scope, gitRoot, homeDir string) (string, error) { |
| 1025 | if opts.Dir != "" { |
| 1026 | return opts.Dir, nil |
| 1027 | } |
| 1028 | return host.InstallDir(scope, gitRoot, homeDir) |
| 1029 | } |
| 1030 | |
| 1031 | func formatPlanHosts(hosts []*registry.AgentHost) string { |
| 1032 | names := make([]string, len(hosts)) |
no test coverage detected