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)
| 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 | |
| 327 | class BashComplete(ShellComplete): |
no test coverage detected