-
Notifications
You must be signed in to change notification settings - Fork 15
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
Output dependency metrics in json format #113
Conversation
ef3def9
to
4a5ab35
Compare
depdive/src/lib.rs
Outdated
Self::get_dep_pacakge_metrics(&graph, only_direct) | ||
} | ||
|
||
fn get_dep_pacakge_metrics(graph: &PackageGraph, only_direct: bool) -> Result<String> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might want to name this fn in such a way that indicates it outputs Json
depdive/src/lib.rs
Outdated
Self::get_code_metrics(&graph, only_direct) | ||
} | ||
|
||
fn get_code_metrics(graph: &PackageGraph, only_direct: bool) -> Result<String> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
@@ -8,7 +8,6 @@ edition = "2018" | |||
|
|||
[dependencies] | |||
anyhow = "1.0.38" # error handling library | |||
tabled = "0.2.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats the rationale for wanting to remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rationale is - There are too many fields for a pretty tabled
output which is no better than just json
output. In midpoint demo, I just chose a subset of the fields so that doesn't break in the monitor screen but that ain't a feature. I think we can make it a future work on how to present a higher-level abstraction of these data based on idea here. #103
/land |
No description provided.