(query: str, limit: int = 20)
| 67 | |
| 68 | |
| 69 | def find_commands(query: str, limit: int = 20) -> list[PortingModule]: |
| 70 | needle = query.lower() |
| 71 | matches = [module for module in PORTED_COMMANDS if needle in module.name.lower() or needle in module.source_hint.lower()] |
| 72 | return matches[:limit] |
| 73 | |
| 74 | |
| 75 | def execute_command(name: str, prompt: str = '') -> CommandExecution: |
no outgoing calls
no test coverage detected