MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / render_command_index

Function render_command_index

claw-code/src/commands.py:83–90  ·  view source on GitHub ↗
(limit: int = 20, query: str | None = None)

Source from the content-addressed store, hash-verified

81
82
83def render_command_index(limit: int = 20, query: str | None = None) -> str:
84 modules = find_commands(query, limit) if query else list(PORTED_COMMANDS[:limit])
85 lines = [f'Command entries: {len(PORTED_COMMANDS)}', '']
86 if query:
87 lines.append(f'Filtered by: {query}')
88 lines.append('')
89 lines.extend(f'- {module.name} — {module.source_hint}' for module in modules)
90 return '\n'.join(lines)

Callers 1

mainFunction · 0.85

Calls 2

find_commandsFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected