You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
391 B

2 months ago
from tools.ToolBase import ToolBase
class NcTool(ToolBase):
def validate_instruction(self, instruction):
timeout = 30
2 months ago
#指令过滤
if "<<<" in instruction:
instruction = f"bash -c \"{instruction}\""
return instruction,timeout
def analyze_result(self, result,instruction,stderr,stdout):
#指令结果分析
2 months ago
return result