MCPcopy Index your code
hub / github.com/abiosoft/ishell / CustomCompleter

Method CustomCompleter

ishell.go:372–375  ·  view source on GitHub ↗

CustomCompleter allows use of custom implementation of readline.Autocompleter.

(completer readline.AutoCompleter)

Source from the content-addressed store, hash-verified

370
371// CustomCompleter allows use of custom implementation of readline.Autocompleter.
372func (s *Shell) CustomCompleter(completer readline.AutoCompleter) {
373 s.customCompleter = true
374 s.setCompleter(completer)
375}
376
377// AddCmd adds a new command handler.
378// This only adds top level commands.

Callers

nothing calls this directly

Calls 1

setCompleterMethod · 0.95

Tested by

no test coverage detected