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

Function logConventions

pkg/cmd/skills/install/install.go:659–673  ·  view source on GitHub ↗
(io *iostreams.IOStreams, skills []discovery.Skill)

Source from the content-addressed store, hash-verified

657}
658
659func logConventions(io *iostreams.IOStreams, skills []discovery.Skill) {
660 conventions := make(map[string]int)
661 for _, s := range skills {
662 conventions[s.Convention]++
663 }
664 if n, ok := conventions["skills-namespaced"]; ok {
665 fmt.Fprintf(io.ErrOut, "Note: found %d namespaced skill(s) in skills/{author}/ directories\n", n)
666 }
667 if n, ok := conventions["plugins"]; ok {
668 fmt.Fprintf(io.ErrOut, "Note: found %d skill(s) using the plugins/ convention\n", n)
669 }
670 if n, ok := conventions["root"]; ok {
671 fmt.Fprintf(io.ErrOut, "Note: found %d skill(s) at the repository root\n", n)
672 }
673}
674
675// skillSelector holds the callbacks that differ between remote and local skill selection.
676type skillSelector struct {

Callers 1

discoverSkillsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected