Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean JSON output #15

Open
zooba opened this issue Jun 15, 2023 · 1 comment
Open

Clean JSON output #15

zooba opened this issue Jun 15, 2023 · 1 comment

Comments

@zooba
Copy link
Member

zooba commented Jun 15, 2023

Currently the stdout from the process is mixed between messages and JSON, which means you can't do commands like this (in Powershell):

$p = ConvertFrom-Json (msstore submission get $product_id)

(Adding -v, which I prefer to do in CI builds, only makes it worse.)

Ideally, messages would be sent to stderr and only JSON to stdout, or alternatively have a mode that only sends JSON unless an error occurs.

@azchohfi
Copy link
Contributor

This is something we've struggled and decided against when we started the project, but it is something we could change. I'm investigating and it seems quite straightforward. A lot of changes since we would need to move away from assuming everything is out on StdOut, but doable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants