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

Function collisionError

pkg/cmd/skills/install/install.go:904–911  ·  view source on GitHub ↗

collisionError checks for name collisions among the selected skills.

(ss []discovery.Skill)

Source from the content-addressed store, hash-verified

902
903// collisionError checks for name collisions among the selected skills.
904func collisionError(ss []discovery.Skill) error {
905 collisions := discovery.FindNameCollisions(ss)
906 if len(collisions) == 0 {
907 return nil
908 }
909 return fmt.Errorf("cannot install skills with conflicting names; they would overwrite each other:\n %s",
910 discovery.FormatCollisions(collisions))
911}
912
913func resolveHosts(opts *InstallOptions, canPrompt bool) ([]*registry.AgentHost, error) {
914 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