The source project of this merge request has been removed.
Rework Command class
Related to !56 (merged)
The objective of this MR is to allow for cleaner code when creating differences from "commands" that that do not require calling a command line tool.
This adds a new Operation class, of which Command is a subclass, that is slightly more abstract. Differences are now created using from_operation rather than from_command, and exclude_command applies to every Operation using its description.
Here is the added layer of abstraction:
- The
descriptionattribute replacesCommand'sshell_cmdline, - The
nameattribute can be used instead ofcmdline()[0], -
did_failcan be called rather than checking thereturncodedirectly, -
outputanderror_stringreplacestderrandstdout.