Skip to content

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

Merged
mosteo merged 2 commits into
masterfrom
alr_search_all
Feb 23, 2024
Merged

Alr.Commands.Search: change default behavior to include properties#1575
mosteo merged 2 commits into
masterfrom
alr_search_all

Conversation

@Fabien-Chouteau

Copy link
Copy Markdown
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.
Comment thread src/alire/alire-releases.ads Outdated

@mosteo mosteo left a comment

Copy link
Copy Markdown
Member

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.

Comment thread src/alr/alr-commands-search.adb Outdated
@mosteo mosteo merged commit 13b8324 into master Feb 23, 2024
@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