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

revamp search #2390

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

revamp search #2390

wants to merge 1 commit into from

Conversation

wolfv
Copy link
Member

@wolfv wolfv commented Oct 30, 2024

I wanted to improve our current pixi search with the following items:

  • by default, show a list of packages that match the matchspec (e.g. numpy>=2). The builds are collapsed (so only one version, and multiple builds are hidden).
  • We add a flag to show all builds with --all-builds
  • We add another flag to show all details for all search results with --details

We also add another search mode that searches in the names, that will use the pixi search --name foo* syntax and show a list of packages that start with foo. We can also keep the current fuzzy search under this umbrella.

If someone has better ideas for the options, I'd be happy to take them :)

@bollwyvl
Copy link
Contributor

bollwyvl commented Nov 1, 2024

A --json output option (and probably a schema) would be very helpful! This would allow doing all kinds of post-hoc analysis with a pixi-installable tool of choice, e.g. jq.

To that end, picking some grammar (but probably not jq itself) used across a number of commands would be lovely in all kinds of places for saying things like:

  • search for all the packages on arches that start with win with a dependency on foo
  • run all tasks that test depends on
  • export all environments that start with installer

Some ideas:

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

Successfully merging this pull request may close these issues.

2 participants