xonixx / makesure

Simple task/command runner with declarative goals and dependencies

Home Page:https://makesure.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow `@glob` goals to be parameterized

xonixx opened this issue · comments

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'