Skip to content

Executor.current_docker_machine or similar #34

Description

@kurtbrose

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions