Skip to content

Exit with appropriate error code for --search when no match is found#4976

Merged
boegel merged 4 commits intoeasybuilders:developfrom
Flamefire:search-ec-exit
Aug 12, 2025
Merged

Exit with appropriate error code for --search when no match is found#4976
boegel merged 4 commits intoeasybuilders:developfrom
Flamefire:search-ec-exit

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

When searching for easyconfigs exit with an error code if none are found. This is useful for scripting.

I moved it to the if-elif ladder to handle it like the other early-exit options as I don't see why it would be special over e.g. --list-software

Flamefire and others added 3 commits August 11, 2025 10:13
When searching for easyconfigs other options don't make much sense.
Hence exit directly and with an error code if none are found.
boegel
boegel previously approved these changes Aug 12, 2025
@boegel boegel enabled auto-merge August 12, 2025 17:31
@boegel boegel added this to the next release (5.1.2) milestone Aug 12, 2025
@boegel boegel changed the title Exit with appropriate error code for --search Exit with appropriate error code for --search when no match is found Aug 12, 2025
@boegel boegel merged commit 92dbe78 into easybuilders:develop Aug 12, 2025
37 checks passed
@Flamefire Flamefire deleted the search-ec-exit branch August 13, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants