Skip to content

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

@sergei-dyshel

Description

@sergei-dyshel

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions