-
Notifications
You must be signed in to change notification settings - Fork 209
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
feat: Update task list console output #1443
Conversation
- `pixi task list` prints all tasks inline rather than one per line - `pixi task list -s` prints tasks per environment
@ruben-arts have updated the commands output as mentioned in the issue. Please have a look. Documentation has not yet been updated. I would like to gather your opinion before proceeding. The cli doc mentions that the |
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.
Thanks for the changes, I have some more requests.
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 @vigneshmanick
Co-authored-by: Ruben Arts <ruben@prefix.dev>
|
||
fn print_tasks_per_env(envs: Vec<Environment>) -> io::Result<()> { | ||
let mut writer = tabwriter::TabWriter::new(stdout()); | ||
for env in envs { |
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.
Should this have been for env in envs.sorted()
or something along those lines? In pixi
0.28.1 (the latest release) I see that the tasks are indeed sorted for pixi task list -s
, but the order in which the environments are shown varies randomly.
Summary
update console output of
task list
pixi task list
prints all tasks inline rather than one per linepixi task list -s
prints tasks per environmentsample output below
resolve #1397