MCPcopy Index your code
hub / github.com/dbcli/mycli / parse_special_command

Function parse_special_command

mycli/packages/special/main.py:64–72  ·  view source on GitHub ↗
(sql: str)

Source from the content-addressed store, hash-verified

62
63
64def parse_special_command(sql: str) -> tuple[str, CommandVerbosity, str]:
65 command, _, arg = sql.partition(" ")
66 command_verbosity = CommandVerbosity.NORMAL
67 if "+" in command:
68 command_verbosity = CommandVerbosity.VERBOSE
69 elif "-" in command:
70 command_verbosity = CommandVerbosity.SUCCINCT
71 command = command.strip().strip("+-")
72 return (command, command_verbosity, arg.strip())
73
74
75def special_command(

Callers 4

suggest_specialFunction · 0.90
handle_llmFunction · 0.90
is_llm_commandFunction · 0.90
executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected