feat(domain_debugging): add a pretty output option for domain of expressions#1624
feat(domain_debugging): add a pretty output option for domain of expressions#1624ozgurakgun merged 19 commits intomainfrom
Conversation
Documentation CoverageReport: https://conjure-cp.github.io/conjure-oxide-reports/pr/1624/coverage-docs/index.html This PR: 43.48% documented, 4.97% with examples (8/70/161) |
Code CoverageReport: https://conjure-cp.github.io/conjure-oxide-reports/pr/1624/coverage-code/index.html This PR: 74.63% lines (16739/22428) |
|
I like the CLI UI for this! Nitpick: can it be called expression-domains instead of expr_domains please? |
…I, remove unused imports, change feild visability
|
@ozgurakgun I think this is ready to go. I think we may as well keep the nested structure since it keeps more information than not. I think it'd be more helpful for debugging if nothing else. |
There was a problem hiding this comment.
how do you like this? I kept yours as expression-domains-json but I am tempted to keep just this.
There was a problem hiding this comment.
to be clear indentation indicates nesting
There was a problem hiding this comment.
and :: is meant to mean domain-of. like how : is type-of.
|
btw prints which has several issues in it. |
|
I think yours is significantly more readable, it's brilliant. I don't see any reason to keep the json one, it'll just be confusing. I've gotten rid of the superfluous brackets in the attributes, I'm assuming that was one of the issues. I am also guessing that |
I was more worried about this one, yes. |
Great - do you want to remove the son version then, please? |
indeed... |
Can do! |
I don't want to leave this unmerged for a long time, so just removed the json option. Will merge soon. |
Description
Adds
expr_domainsas an option to the--output-format=argument in theprettysubcommand.Prints out a JSON of expressions, detailing:
Related issues
helping toward #1547 by adding the data source for testing.
Key changes
Adding a new output format
How to test/review
Run
cargo run pretty <file> --output-format=expr_domainsand manually check that the result is as expected.