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

Allow @glob goals to be parameterized #155

Closed
xonixx opened this issue Jan 3, 2024 · 0 comments
Closed

Allow @glob goals to be parameterized #155

xonixx opened this issue Jan 3, 2024 · 0 comments
Assignees
Milestone

Comments

@xonixx
Copy link
Owner

xonixx commented Jan 3, 2024

Relates to #151

The idea is to allow

@goal gpg @glob 'glob_test/*.txt' @params P
  echo "$ITEM $P"

@goal g1
@depends_on gpg @args 'hello'

by "desugaring" it to

@goal gpg @params P
@depends_on 'gpg@glob_test/1.txt' @args P 
@depends_on 'gpg@glob_test/2.txt' @args P 

@goal 'gpg@glob_test/1.txt' @params P
  echo "$ITEM $P"
@goal 'gpg@glob_test/2.txt' @params P
  echo "$ITEM $P"

@goal g1
@depends_on gpg @args 'hello'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant