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

Method format_completion

src/click/shell_completion.py:306–312  ·  view source on GitHub ↗

Format a completion item into the form recognized by the shell script. This must be implemented by subclasses. :param item: Completion item to format.

(self, item: CompletionItem[str])

Source from the content-addressed store, hash-verified

304 return obj.shell_complete(ctx, incomplete)
305
306 def format_completion(self, item: CompletionItem[str]) -> str:
307 """Format a completion item into the form recognized by the
308 shell script. This must be implemented by subclasses.
309
310 :param item: Completion item to format.
311 """
312 raise NotImplementedError
313
314 def complete(self) -> str:
315 """Produce the completion data to send back to the shell.

Callers 1

completeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected