feat: сделал первую версию CLI
Проект в целом получил свой MVP
This commit is contained in:
@ -61,10 +61,9 @@ class Rulebook:
|
||||
log += string + '\n'
|
||||
log += "FINAL_RULE".center(CENTER_WIDTH, "_") + '\n'
|
||||
return string, log
|
||||
# raise ValueError("The amount of transformations exceeded "
|
||||
# f"{self.MAX_DEPTH}. You can change maximum "
|
||||
# "amount by setting class variable MAX_DEPTH,"
|
||||
# " but may be something wrong with your input")
|
||||
|
||||
log += "OVERFLOW".center(CENTER_WIDTH, "_") + '\n'
|
||||
return None, log
|
||||
|
||||
def _log_rule(self, rule) -> str:
|
||||
arrow = "->|" if rule.is_blocking else "->"
|
||||
|
||||
Reference in New Issue
Block a user