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

Command line flag to exit without error if recipe not found #2275

Open
sergei-dyshel opened this issue Jul 26, 2024 · 2 comments · May be fixed by #2460
Open

Command line flag to exit without error if recipe not found #2275

sergei-dyshel opened this issue Jul 26, 2024 · 2 comments · May be fixed by #2460

Comments

@sergei-dyshel
Copy link

In some cases it's helpful to run just so that it silently exists with code 0 if requested recipe is not found. Possible usecase: running same recipe in multiple directories (e.g. with GNU parallel) when in some of them the recipe is not defined, in which case we just want to skip the dir.

It is currently possible to do with NPM scripts, for example npm run --ws --if-present <script> will run script in every workspace where script is defined.

@casey
Copy link
Owner

casey commented Jul 28, 2024

This seems perfectly reasonable to me! Marking as good first issue in case anyone wants to take a crack at it.

@walla
Copy link

walla commented Sep 13, 2024

i want to try

@R3ZV R3ZV linked a pull request Nov 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants