(opts *InstallOptions, skills []discovery.Skill)
| 811 | } |
| 812 | |
| 813 | func matchLocalSkillByName(opts *InstallOptions, skills []discovery.Skill) ([]discovery.Skill, error) { |
| 814 | for _, s := range skills { |
| 815 | if s.DisplayName() == opts.SkillName || s.Name == opts.SkillName { |
| 816 | return []discovery.Skill{s}, nil |
| 817 | } |
| 818 | } |
| 819 | return nil, fmt.Errorf("skill %q not found in local directory", opts.SkillName) |
| 820 | } |
| 821 | |
| 822 | // skillSearchFunc returns a search function for MultiSelectWithSearch that |
| 823 | // filters skills by case-insensitive substring match on name and description. |
nothing calls this directly
no test coverage detected