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])
| 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. |