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

Function resolveInstallDir

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

Source from the content-addressed store, hash-verified

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

Callers 1

buildInstallPlansFunction · 0.85

Calls 1

InstallDirMethod · 0.80

Tested by

no test coverage detected