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

Suggestions for pixi info and pixi task list terminal ouput #1397

Closed
vigneshmanick opened this issue May 15, 2024 · 3 comments · Fixed by #1443
Closed

Suggestions for pixi info and pixi task list terminal ouput #1397

vigneshmanick opened this issue May 15, 2024 · 3 comments · Fixed by #1443
Labels
enhancement New feature or request

Comments

@vigneshmanick
Copy link
Contributor

vigneshmanick commented May 15, 2024

Problem description

Hello Pixi Team,

There is an inconsistency between pixi task list and pixi info wrt. Tasks and the dependencies displayed

  • pixi task list displays the tasks in alphabetical order while those in pixi info are not.
  • pixi info shows the dependencies according to the features defined but it's not readily visible which dependency belongs to which feature. The features have different colors but the dependencies don't

Pixi info

image

Pixi task list

image

Suggestions

  • The tasks in pixi task list are all bold and blue but in the pixi info command they are blue but not bold. The output is inline in one command and in the other is all in the same line. Suggestion here would be that pixi task list output be similar to pixi info (inline). When there are multiple tasks the vertical real estate is used up quickly.
  • The order of tasks should be the same in both pixi info and pixi task list. imo they both should be shown sorted alphabetically and also per environment.
  • The dependencies shown in pixi info should have the same color of the corresponding feature and should also be sorted so that it's clear which dependency belongs to which feature.
  • Maybe print the dependencies per feature?
  • The features should also be sorted alphabetically in pixi info.

Tldr; Sort the data displayed while using consistent colors and formatting (pixi info style is well suited for different command outputs imo) across commands to differentiate/collate output.

@vigneshmanick vigneshmanick added the enhancement New feature or request label May 15, 2024
@PanTheDev
Copy link

I'm thinking for both pixi info and pixi tasks list there should be a --per-feature argument to group dependencies and/or tasks by feature.

@vigneshmanick
Copy link
Contributor Author

just tried to hack the output (with my very limited rust Kenntnisse ) a bit and have got the following for pixi task list and pixi task summary. The former outputs all the tasks inline similar to the pixi info command and the latter outputs the tasks per environment.

pixi task list

image

pixi task list -s

image

looking at the outputs, i feel the pixi info command might be better suited to display these. e.g pixi info tasks, pixi info tasks -s since all these outputs are alredy formatted and available in the pixi info cli class.

Me as a user when looking at the info command expect that both the filtered and unfiltered info will be available in the info command.

@ruben-arts
Copy link
Contributor

That looks and sounds logical @vigneshmanick, would you be able to make a PR with your work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants