contextSubcommand peeks at the invocation to classify the call without the full parse pipeline (used by the capability methods below).
(args []string)
| 13 | // contextSubcommand peeks at the invocation to classify the call without the |
| 14 | // full parse pipeline (used by the capability methods below). |
| 15 | func 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 |
no test coverage detected