MCPcopy Create free account
hub / github.com/cli/cli / resolveInstallDir

Function resolveInstallDir

pkg/cmd/skills/install/install.go:1010–1015  ·  view source on GitHub ↗
(opts *InstallOptions, host *registry.AgentHost, scope registry.Scope, gitRoot, homeDir string)

Source from the content-addressed store, hash-verified

1008}
1009
1010func 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
1017func formatPlanHosts(hosts []*registry.AgentHost) string {
1018 names := make([]string, len(hosts))

Callers 1

buildInstallPlansFunction · 0.85

Calls 1

InstallDirMethod · 0.80

Tested by

no test coverage detected