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

Function DiscoverSkillByPath

internal/skills/discovery/discovery.go:710–712  ·  view source on GitHub ↗

DiscoverSkillByPath looks up a single skill by its exact path in the repository.

(client *api.Client, host, owner, repo, commitSHA, skillPath string)

Source from the content-addressed store, hash-verified

708
709// DiscoverSkillByPath looks up a single skill by its exact path in the repository.
710func DiscoverSkillByPath(client *api.Client, host, owner, repo, commitSHA, skillPath string) (*Skill, error) {
711 return DiscoverSkillByPathWithOptions(client, host, owner, repo, commitSHA, skillPath, DiscoverSkillByPathOptions{})
712}
713
714// DiscoverSkillByPathWithOptions looks up a single skill by its exact path in
715// the repository, applying the given options.

Callers 2

installRunFunction · 0.92
TestDiscoverSkillByPathFunction · 0.85

Calls 1

Tested by 1

TestDiscoverSkillByPathFunction · 0.68