MatchesSkillPath checks if a file path matches any known skill convention and returns the skill name. Returns empty string if the path doesn't match.
(filePath string)
| 393 | // MatchesSkillPath checks if a file path matches any known skill convention |
| 394 | // and returns the skill name. Returns empty string if the path doesn't match. |
| 395 | func MatchesSkillPath(filePath string) string { |
| 396 | m := matchSkillConventions(treeEntry{Path: filePath}) |
| 397 | if m == nil { |
| 398 | return "" |
| 399 | } |
| 400 | return m.name |
| 401 | } |
| 402 | |
| 403 | // MatchSkillPath checks if a file path matches any known skill convention |
| 404 | // and returns the skill name and namespace. Returns empty strings if the |