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

Option to output the Reports as JSON to stdOut #28

Open
schriftgestalt opened this issue Dec 12, 2024 · 4 comments
Open

Option to output the Reports as JSON to stdOut #28

schriftgestalt opened this issue Dec 12, 2024 · 4 comments

Comments

@schriftgestalt
Copy link

instead of writing it to a file.

@schriftgestalt
Copy link
Author

I’m hacking together something for myself. I’ll send a PR if I get it to work.

@simoncozens
Copy link
Owner

Thank you. I think it's a good idea.

@simoncozens
Copy link
Owner

Thinking about how this should appear in the command line, I guess the tidiest way to do it would be a kind of Unix-style -q --json - (only write the test output, write to - as stdout filename).

However, if you are thinking about using this as a way to get information into Glyphs.app, I think it would be worth a conversation about using fontspector-cli and creating a shared library to run the checks directly.

@schriftgestalt
Copy link
Author

Happy to try to better integrate it. But is seems to work quite well. And to get the date from rust to objC it needs to be serialized to some c structures. So the detour through stdout is not so bad.

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