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

Alr.Commands.Search: change default behavior to include properties #1575

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

Fabien-Chouteau
Copy link
Member

This patch comes from a comment of a user looking for gnatpp in Alire. gnatpp is part of the libabalang_tools crate and a 1.x alr search gnatpp returns nothing. The reason that by default only the release name and descriptions are searched. This is quite a bad user interaction.

Here we change the default behavior to search in all properties of a release, including tags, executables, website, etc.

We also display the list of properties that match the pattern.

Searching in names and descriptions only is still possible with the --crates switch.

This patch comes from a comment of a user looking for gnatpp in Alire.
gnatpp is part of the libabalang_tools crate and a 1.x `alr search gnatpp`
returns nothing. The reason that by default only the release name and
descriptions are searched. This is quite a bad user interaction.

Here we change the default behavior to search in all properties of a
release, including tags, executables, website, etc.

We also display the list of properties that match the pattern.

Searching in names and descriptions only is still possible with the
--crates switch.
Copy link
Member

@mosteo mosteo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice feature. I just saw some noisy behavior that could be improved.

src/alr/alr-commands-search.adb Outdated Show resolved Hide resolved
@mosteo mosteo merged commit 13b8324 into master Feb 23, 2024
27 checks passed
@mosteo mosteo deleted the alr_search_all branch February 23, 2024 10:39
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