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

Function atArg

cli/memory_command.go:703–705  ·  view source on GitHub ↗

atArg reports whether the cursor is positioned to complete the Nth argument (1-based) of the command — i.e. " ".

(args []string, line string, n int)

Source from the content-addressed store, hash-verified

701// atArg reports whether the cursor is positioned to complete the Nth argument
702// (1-based) of the command — i.e. "<cmd> <subN> <here>".
703func atArg(args []string, line string, n int) bool {
704 return len(args) == n || (len(args) == n+1 && !strings.HasSuffix(line, " "))
705}
706
707// getMemoryArgSuggestions provides the second-level completions for
708// /memory's subcommands (load dates, facts/remember categories, profile keys).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected