Currently, terminal outputs are matched in their functions using a long string of if / else if / else statements.
It would be more robust and convenient to define a protocol, which would allow a conformed enum to define an array of strings that would match each case.
Currently, terminal outputs are matched in their functions using a long string of
if / else if / elsestatements.It would be more robust and convenient to define a protocol, which would allow a conformed enum to define an array of strings that would match each case.