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

Function get_commands

claw-code/src/commands.py:60–66  ·  view source on GitHub ↗
(cwd: str | None = None, include_plugin_commands: bool = True, include_skill_commands: bool = True)

Source from the content-addressed store, hash-verified

58
59
60def 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
69def find_commands(query: str, limit: int = 20) -> list[PortingModule]:

Callers 3

build_command_graphFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected