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?
A common usage for dpx is to leverage it within github actions to prevent the manual
dart pub global activate...stepIn this case we always pass
-ysince it is known that the executable doesn't actually exist, and we want to force install itWhen doing this though, the output for installing the package is still emitted:
the major downside of this is if we pipe the output of a command this verbose header is included:
Thoughts on silencing all command installation output when
-yis provided?