Skip to content

[Feature]: Add flag for explicit interactive mode #6536

@alexflint

Description

@alexflint

What problem does this feature solve?

When I run rsbuild as a subprocess of another process, it doesn't start in interactive mode, so I can't type "o + enter" to open the app in the browser (or other interactive commands). In my case I am running rsbuild under concurrently, which has an option to pass stdin to one of its subprocesses. I was hoping to be able to use rsbuild's interactive commands when running it under concurrently, but it doesn't work because rsbuild doesn't go into interactive mode when running as a subprocess. I imagine this is based on detecting whether stdin is a TTY, which it isn't in the case of being run under concurrently. Unfortunately concurrently doesn't have an option to allocate a TTY to a subprocess.

Could there be an rsbuild --interactive that forces interactive mode?

What does the proposed API look like?

rsbuild --interactive

Forces rsbuild to go into interactive mode, even if stdin is not a TTY.

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