Lines Matching refs:valid_commands
60 def _merge_subcommands(command_name: str, valid_commands: dict) -> dict:
66 subcommands = valid_commands[command_name].get_subcommands()
68 return { **valid_commands, **subcommands }
69 return valid_commands
83 valid_commands = _merge_subcommands(
86 command = eval(raw_text, valid_commands)
115 def _search_line_for_cmd_start(line: str, start: int, valid_commands: dict) -> int:
125 for command in valid_commands:
196 def _find_all_commands_in_file(path, file_lines, valid_commands): argument
208 … region_start.char = _search_line_for_cmd_start(line, region_start.char, valid_commands)
237 valid_commands[command_name],
270 valid_commands = _get_valid_commands()
275 valid_commands)
318 self.valid_commands = {
329 return _find_all_commands_in_file(__file__, lines, self.valid_commands)