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