It would be nice to have an idiomatic way to check what mutations have been applied to a given executor for REPL usage. Not sure what the right API is.
One way this could be achieved is to have a tuple of func + args for all the state-mutating functions that return a new executor. Then they could be added to the repr:
Executor(_shell=Shell, _commands=[]).in_docker_machine('foo').patch_env('bar', 'baz')
This is a bit radical, but follow the convention of "repr allows you to reproduce the object".
It would be nice to have an idiomatic way to check what mutations have been applied to a given executor for REPL usage. Not sure what the right API is.
One way this could be achieved is to have a tuple of func + args for all the state-mutating functions that return a new executor. Then they could be added to the repr:
This is a bit radical, but follow the convention of "repr allows you to reproduce the object".