Skip to content

Output capturing by session.run() #572

@mat-rs

Description

@mat-rs

How would this feature be useful?
I need to handle some git commands during sessions, evaluating their output.
Currently it is possible to capture the output of processes executed by run() by setting silent=True.
However, this is not documented.

Describe the solution you'd like
It would be great if capturing output of run() would be made an official documented feature.
It would also be useful to capture output and exit code at the same time.

Describe alternatives you've considered
An alternative would be using subprocess instead of session.run()

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