just icon indicating copy to clipboard operation
just copied to clipboard

Command line flag to exit without error if recipe not found

Open sergei-dyshel opened this issue 1 year ago • 2 comments

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.

sergei-dyshel avatar Jul 26 '24 00:07 sergei-dyshel

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

casey avatar Jul 28 '24 17:07 casey

i want to try

walla avatar Sep 13 '24 15:09 walla