Open MadVikingGod opened 4 months ago
It's not ideal but weaver --quiet registry resolve -f json | jq .
works.
However, I agree we should turn automatically quiet mode in this specific context. Thanks for reporting.
--quiet
is no longer required with #187 (not yet approved at this point of time).
Is there any way to promote this option to A) show up in the weaver registry resolve --help
, and B) Be usable from the end of the command?
For B) weaver --quiet registry resolve
works, but weaver registry resolve --quiet
does not.
Yes, it's definitely something to improve in the user experience. We use Clap for command-line parsing, and while there are some limitations, there are workarounds to ensure that both A and B are feasible.
@MadVikingGod with #187 merged --quiet
is no longer required.
However, I'd like to keep this issue open as I will make some changes to accept the --quiet
argument in a more discoverable position.
Fixed in #196 (pending approval).
Describe the bug When the output is stdout, the status lines (example below) will break any kind of stream processing, such as passing it to
jq
.example:
To Reproduce Steps to reproduce the behavior:
weaver registry resolve -f json | jq .
Expected behavior The resolve output should be in the correct format, free of any status outputs.
Additional context These statuses are nice if we are outputting to a file or if they were on stderr.