MCPcopy Index your code
hub / github.com/cli/cli / collisionError

Function collisionError

pkg/cmd/skills/install/install.go:900–907  ·  view source on GitHub ↗

collisionError checks for name collisions among the selected skills.

(ss []discovery.Skill)

Source from the content-addressed store, hash-verified

898
899// collisionError checks for name collisions among the selected skills.
900func collisionError(ss []discovery.Skill) error {
901 collisions := discovery.FindNameCollisions(ss)
902 if len(collisions) == 0 {
903 return nil
904 }
905 return fmt.Errorf("cannot install skills with conflicting names; they would overwrite each other:\n %s",
906 discovery.FormatCollisions(collisions))
907}
908
909func resolveHosts(opts *InstallOptions, canPrompt bool) ([]*registry.AgentHost, error) {
910 if opts.Agent != "" {

Callers 1

selectSkillsWithSelectorFunction · 0.85

Calls 3

FindNameCollisionsFunction · 0.92
FormatCollisionsFunction · 0.92
ErrorfMethod · 0.65

Tested by

no test coverage detected