Skip to content

[Question] How to passthrough stdout/stdin for External Tasks #106

@joshuawright11

Description

@joshuawright11

I'd like to run an external task from my command that may ask the user for input.

What's the best way of passing through requests for input (I assume from the external task's stdout) to the user, and also passing the user's input to the external tasks stdin?

A very simple example:

I'd like to run sudo echo hello as an external task and have the user be notified when sudo asks for their password. How could I accomplish that with the Task API?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions