MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / _suggest_similar_command

Method _suggest_similar_command

cmd2/cmd2.py:3418–3419  ·  view source on GitHub ↗
(self, command: str)

Source from the content-addressed store, hash-verified

3416 return Completions()
3417
3418 def _suggest_similar_command(self, command: str) -> str | None:
3419 return suggest_similar(command, self.get_visible_commands())
3420
3421 @staticmethod
3422 def _is_tty_session(session: PromptSession[str]) -> bool:

Callers 1

defaultMethod · 0.95

Calls 2

get_visible_commandsMethod · 0.95
suggest_similarFunction · 0.85

Tested by

no test coverage detected