Skip to content

Ability to dynamically define sources using sh #88

@masaeedu

Description

@masaeedu

I have a task that needs to re-run whenever any tracked file in the entire folder changes (I use git to track what is a "tracked file"). I wanted to use **/* as the pattern, but obviously this doesn't work without tweaking, because the task will pick up changes in the build artifacts that the task itself produces.

The simplest approach would just be to allow for:

sources:
  sh: <given filenames on stdin, exit or stdout line determines whether it is an input>

I could also make do with something like sources: { include: [...], exclude: [...] }.

PS: Just wanted to thank you for this amazing tool. I really like that you have sparse, minimal feature set that composes in powerful ways (e.g. recursive invocation).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions