MCPcopy
hub / github.com/cli/cli / DiscoverSkillByPath

Function DiscoverSkillByPath

internal/skills/discovery/discovery.go:684–686  ·  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

682
683// DiscoverSkillByPath looks up a single skill by its exact path in the repository.
684func DiscoverSkillByPath(client *api.Client, host, owner, repo, commitSHA, skillPath string) (*Skill, error) {
685 return DiscoverSkillByPathWithOptions(client, host, owner, repo, commitSHA, skillPath, DiscoverSkillByPathOptions{})
686}
687
688// DiscoverSkillByPathWithOptions looks up a single skill by its exact path in
689// the repository, applying the given options.

Callers 2

installRunFunction · 0.92
TestDiscoverSkillByPathFunction · 0.85

Calls 1

Tested by 1

TestDiscoverSkillByPathFunction · 0.68