MCPcopy
hub / github.com/pallets/click / complete

Method complete

src/click/shell_completion.py:314–324  ·  view source on GitHub ↗

Produce the completion data to send back to the shell. By default this calls :meth:`get_completion_args`, gets the completions, then calls :meth:`format_completion` for each completion.

(self)

Source from the content-addressed store, hash-verified

312 raise NotImplementedError
313
314 def complete(self) -> str:
315 """Produce the completion data to send back to the shell.
316
317 By default this calls :meth:`get_completion_args`, gets the
318 completions, then calls :meth:`format_completion` for each
319 completion.
320 """
321 args, incomplete = self.get_completion_args()
322 completions = self.get_completions(args, incomplete)
323 out = [self.format_completion(item) for item in completions]
324 return "\n".join(out)
325
326
327class BashComplete(ShellComplete):

Callers 1

shell_completeFunction · 0.80

Calls 3

get_completion_argsMethod · 0.95
get_completionsMethod · 0.95
format_completionMethod · 0.95

Tested by

no test coverage detected