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

Function resolveInstallDir

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

Source from the content-addressed store, hash-verified

1021}
1022
1023func 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
1030func formatPlanHosts(hosts []*registry.AgentHost) string {
1031 names := make([]string, len(hosts))

Callers 1

buildInstallPlansFunction · 0.85

Calls 1

InstallDirMethod · 0.80

Tested by

no test coverage detected