(opts *InstallOptions, skills []discovery.Skill)
| 827 | } |
| 828 | |
| 829 | func matchLocalSkillByName(opts *InstallOptions, skills []discovery.Skill) ([]discovery.Skill, error) { |
| 830 | for _, s := range skills { |
| 831 | if s.DisplayName() == opts.SkillName || s.Name == opts.SkillName { |
| 832 | return []discovery.Skill{s}, nil |
| 833 | } |
| 834 | } |
| 835 | return nil, fmt.Errorf("skill %q not found in local directory", opts.SkillName) |
| 836 | } |
| 837 | |
| 838 | // skillSearchFunc returns a search function for MultiSelectWithSearch that |
| 839 | // filters skills by case-insensitive substring match on name and description. |
nothing calls this directly
no test coverage detected