MCPcopy Create free account
hub / github.com/Samsung/UTopia / parse_command

Method parse_command

helper/buildparser.py:138–150  ·  view source on GitHub ↗
(self, captured_command: str)

Source from the content-addressed store, hash-verified

136 return srcs, compiles, links, assems
137
138 def parse_command(self, captured_command: str) -> CMD:
139 tokens = [
140 token.strip()
141 for token in captured_command.split("|autofuzz_splitter|")
142 if token.strip()
143 ]
144 if len(tokens) != 2:
145 raise Exception("Invalid command")
146
147 path = Path(tokens[0])
148 command = tokens[1]
149 command = self.normalize_command(command)
150 return CMD(command, path)
151
152 def make_build_db(
153 self,

Callers 1

parseMethod · 0.95

Calls 3

normalize_commandMethod · 0.95
CMDClass · 0.85
PathClass · 0.50

Tested by

no test coverage detected