Skip to content

Launching rustup from Command does not return a colored output #3433

Closed
@Luni-4

Description

@Luni-4

Problem you are trying to solve

When I run this command:

Command::new("rustup")
        .args(["target", "add", target])
        .output()
        .expect("Failed to run rustup");

I cannot get a colored text as output. It does not happen when I run the same command directly from my terminal.

Solution you'd like

Would it be possible to add a --color option even for the rustup installer? Thanks in advance!

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions