MCPcopy Create free account
hub / github.com/diillson/chatcli / contextSubcommand

Function contextSubcommand

cli/plugins/builtin_context_caps.go:15–21  ·  view source on GitHub ↗

contextSubcommand peeks at the invocation to classify the call without the full parse pipeline (used by the capability methods below).

(args []string)

Source from the content-addressed store, hash-verified

13// contextSubcommand peeks at the invocation to classify the call without the
14// full parse pipeline (used by the capability methods below).
15func contextSubcommand(args []string) (cmd, name string) {
16 c, raw, err := parseContextInvocation(args)
17 if err != nil {
18 return "", ""
19 }
20 return c, jsonString(raw, "name")
21}
22
23// IsReadOnly reports true only for the inspecting subcommands. create/attach/
24// detach/delete mutate the context store or the session, so they are NOT

Callers 2

IsReadOnlyMethod · 0.85
DescribeCallMethod · 0.85

Calls 2

parseContextInvocationFunction · 0.85
jsonStringFunction · 0.85

Tested by

no test coverage detected