-
Notifications
You must be signed in to change notification settings - Fork 354
feat(tree): json representation #4261
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
base: main
Are you sure you want to change the base?
Conversation
c391e7f
to
40dbb1a
Compare
Adds a JSON output allowing `pixi tree —json` to hopefully be easily consumable by tools like marimo. Closes prefix-dev#4130
cc @manzt |
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.
Thank you, @abkfenris, I really want this feature!
@MantZ would you be able to give this a swirl?
name: String, | ||
version: String, | ||
tags: Vec<String>, | ||
dependencies: Vec<DependencyTreeNode>, |
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.
I think it would be nice to jam a little more info in here, we've had people ask for the size
and I would say it misses the type
(conda or pypi)
.map_err(|e| { | ||
if e.kind() == std::io::ErrorKind::BrokenPipe { | ||
// Exit gracefully | ||
std::process::exit(0); | ||
} else { | ||
e | ||
} | ||
}) |
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.
We dont do this anywhere else, can you explain why this is needed?
Adds a JSON output allowing
pixi tree —json
to hopefully be easilyconsumable by tools like marimo.
Closes #4130