SplitArg splits " / " at the first separator; an argument with no separator is a bare skill name (rest "").
(arg string)
| 104 | // SplitArg splits "<name>/<rest>" at the first separator; an argument with no |
| 105 | // separator is a bare skill name (rest ""). |
| 106 | func SplitArg(arg string) (name, rest string) { |
| 107 | name, rest, _ = strings.Cut(arg, "/") |
| 108 | return name, rest |
| 109 | } |
| 110 | |
| 111 | // parseFrontmatter best-effort-extracts the frontmatter fields; missing or |
| 112 | // unparseable frontmatter yields ("", "", nil), never an error. |
no outgoing calls
no test coverage detected