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

Improvement to @goal @glob #46

Closed
xonixx opened this issue Sep 13, 2021 · 0 comments
Closed

Improvement to @goal @glob #46

xonixx opened this issue Sep 13, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@xonixx
Copy link
Owner

xonixx commented Sep 13, 2021

In continuation of #34

New Design

In addition to proposed behavior in #34 let's also generate a root goal that also calls all child goals.
So:

@goal goal_name @glob *.txt 
 echo $ITEM $INDEX $TOTAL

Is eqivalent to

@goal goal_name
@depends_on [email protected]
@depends_on [email protected]

@goal [email protected]
 echo a.txt 0 2

@goal [email protected]
 echo b.txt 1 2

iff

$ ls
a.txt b.txt

@private

@private takes effect on all-goal only. Generated goals are aways private.

name

Name is not mandatory as now.

Without name let's use glob itself as a name (but only if it doesn't equal to a generated goal name)

@goal @glob *.txt 
 echo $ITEM $INDEX $TOTAL

Is eqivalent to

@goal *.txt
@depends_on a.txt
@depends_on b.txt

@goal a.txt
 echo a.txt 0 2

@goal b.txt
 echo b.txt 1 2

Child goals ordering

Let's make it natural sort order

@xonixx xonixx added the enhancement New feature or request label Sep 13, 2021
@xonixx xonixx added this to the 0.9.10 milestone Sep 13, 2021
@xonixx xonixx self-assigned this Sep 13, 2021
xonixx added a commit that referenced this issue Sep 18, 2021
@xonixx xonixx changed the title Imporvement to @goal @glob Improvement to @goal @glob Sep 18, 2021
xonixx added a commit that referenced this issue Sep 18, 2021
xonixx added a commit that referenced this issue Sep 18, 2021
xonixx added a commit that referenced this issue Sep 19, 2021
xonixx added a commit that referenced this issue Sep 19, 2021
xonixx added a commit that referenced this issue Sep 19, 2021
xonixx added a commit that referenced this issue Sep 19, 2021
xonixx added a commit that referenced this issue Sep 19, 2021
xonixx added a commit that referenced this issue Sep 19, 2021
xonixx added a commit that referenced this issue Sep 19, 2021
@xonixx xonixx closed this as completed Sep 19, 2021
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