| 657 | } |
| 658 | |
| 659 | func 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. |
| 676 | type skillSelector struct { |