(cwd: str | None = None, include_plugin_commands: bool = True, include_skill_commands: bool = True)
| 58 | |
| 59 | |
| 60 | def get_commands(cwd: str | None = None, include_plugin_commands: bool = True, include_skill_commands: bool = True) -> tuple[PortingModule, ...]: |
| 61 | commands = list(PORTED_COMMANDS) |
| 62 | if not include_plugin_commands: |
| 63 | commands = [module for module in commands if 'plugin' not in module.source_hint.lower()] |
| 64 | if not include_skill_commands: |
| 65 | commands = [module for module in commands if 'skills' not in module.source_hint.lower()] |
| 66 | return tuple(commands) |
| 67 | |
| 68 | |
| 69 | def find_commands(query: str, limit: int = 20) -> list[PortingModule]: |
no outgoing calls
no test coverage detected