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

Function collisionError

pkg/cmd/skills/install/install.go:884–891  ·  view source on GitHub ↗

collisionError checks for name collisions among the selected skills.

(ss []discovery.Skill)

Source from the content-addressed store, hash-verified

882
883// collisionError checks for name collisions among the selected skills.
884func collisionError(ss []discovery.Skill) error {
885 collisions := discovery.FindNameCollisions(ss)
886 if len(collisions) == 0 {
887 return nil
888 }
889 return fmt.Errorf("cannot install skills with conflicting names; they would overwrite each other:\n %s",
890 discovery.FormatCollisions(collisions))
891}
892
893func resolveHosts(opts *InstallOptions, canPrompt bool) ([]*registry.AgentHost, error) {
894 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