MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / CompleteInput

Function CompleteInput

cli/completer.go:21–30  ·  view source on GitHub ↗
(textBeforeCursor string, registry *skills.SkillRegistry, cwd string)

Source from the content-addressed store, hash-verified

19}
20
21func CompleteInput(textBeforeCursor string, registry *skills.SkillRegistry, cwd string) []Completion {
22 stripped := strings.TrimLeftFunc(textBeforeCursor, unicode.IsSpace)
23 if strings.HasPrefix(stripped, "/") {
24 if !SlashCompletionActive(textBeforeCursor) {
25 return nil
26 }
27 return completeSlashCommand(stripped, registry, cwd)
28 }
29 return CompleteVisiblePaths(textBeforeCursor, cwd)
30}
31
32func SlashCompletionActive(textBeforeCursor string) bool {
33 _, fragment, ok := SlashCompletionFragment(textBeforeCursor)

Callers

nothing calls this directly

Calls 3

SlashCompletionActiveFunction · 0.85
completeSlashCommandFunction · 0.85
CompleteVisiblePathsFunction · 0.85

Tested by

no test coverage detected