Skip to content

Installation header output should send to stderr #28

@matthewnitschke-wk

Description

@matthewnitschke-wk

A common usage for dpx is to leverage it within github actions to prevent the manual dart pub global activate... step

In this case we always pass -y since it is known that the executable doesn't actually exist, and we want to force install it

When doing this though, the output for installing the package is still emitted:

Need to install the following packages:
Git repository "ssh://git@github.com/...

the major downside of this is if we pipe the output of a command this verbose header is included:

$ dpx -y my_command > out.json
$ cat out.json
Need to install the following packages:
Git repository "ssh://git@github.com/...
{
 "command_json": "here"
}

Thoughts on silencing all command installation output when -y is provided?

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