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