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

User friendly output on the command line - second cut #41

Closed
1 of 5 tasks
azriel91 opened this issue Oct 23, 2022 · 1 comment
Closed
1 of 5 tasks

User friendly output on the command line - second cut #41

azriel91 opened this issue Oct 23, 2022 · 1 comment

Comments

@azriel91
Copy link
Owner

azriel91 commented Oct 23, 2022

Part two of use friendly CLI output (part one -- #28).

  • Refactor Error to consolidate all State*Deserialize and Serialize errors into a single variant.

  • Specify diagnostic source code, spans, and help messages for each variant.

  • Update *Cmds and tests to write errors to OutputWrite -- maybe not? Depends if the Cmd is meant to be the one writing.

  • Update InMemoryTextOutput for the web to display miette reports.

  • Update book documentation on how to use miette.

    The download example uses a workaround to show inner diagnostics to get around the pass-though not working issue:

@azriel91
Copy link
Owner Author

Closing -- specific issues should be opened with well-defined scope for each task.

The above tasks are infinitely growing.

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

1 participant