MCPcopy
hub / github.com/x-motemen/gore / updateCompleter

Method updateCompleter

session.go:475–485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473}
474
475func (s *Session) updateCompleter() {
476 if s.completer != nil {
477 source, err := s.source(false)
478 if err != nil {
479 return
480 }
481 if err = s.completer.update(source); err != nil {
482 debugf("failed to update completer: %s", err)
483 }
484 }
485}
486
487func (s *Session) invokeCommand(in string) (err error) {
488 in = strings.TrimLeftFunc(in, func(c rune) bool {

Callers 2

EvalMethod · 0.95
invokeCommandMethod · 0.95

Calls 3

sourceMethod · 0.95
updateMethod · 0.80
debugfFunction · 0.70

Tested by

no test coverage detected