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

Add pattern-matching variable substitutions #29

Open
o-smirnov opened this issue Apr 26, 2022 · 0 comments
Open

Add pattern-matching variable substitutions #29

o-smirnov opened this issue Apr 26, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@o-smirnov
Copy link
Member

I'd like to be able to refer to "the most recent step of a particular kind". See e.g. https://github.com/o-smirnov/jovial/blob/master/ddf-mosaic.yaml. Here, a mask is made at step mask-di2, and later reused and reused (see e.g. image-dd1). If I decide to make another mask at a later step (say mask-di3), I now have to go and edit all the subsequent references to use that mask.

It would be nice to be able to say {steps.mask-*.foo}, and have the middle bit interpreted as "the last (or at least alphanumerically highest) preceding step matching mask-*". This should be easy to add to substitutions.py.

@o-smirnov o-smirnov added the enhancement New feature or request label Apr 26, 2022
@o-smirnov o-smirnov self-assigned this Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant