MCPcopy Index your code
hub / github.com/larksuite/cli / SplitArg

Function SplitArg

internal/skillcontent/reader.go:106–109  ·  view source on GitHub ↗

SplitArg splits " / " at the first separator; an argument with no separator is a bare skill name (rest "").

(arg string)

Source from the content-addressed store, hash-verified

104// SplitArg splits "<name>/<rest>" at the first separator; an argument with no
105// separator is a bare skill name (rest "").
106func 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.

Callers 2

parseReadTargetFunction · 0.92
ListPathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected