Raku / ake

A Raku make-a-like inspired by rake
Artistic License 2.0
12 stars 10 forks source link

Implement --dry-run command line argument #20

Open AlexDaniel opened 6 years ago

AlexDaniel commented 6 years ago

So that it will be possible to see which tasks are going to be executed.

Xliff commented 6 years ago

@AlexDaniel,

I'd be happy to implement this. Do you have any idea how you would prefer to pass parameters to separate tasks?

AlexDaniel commented 6 years ago

I was thinking about a global flag in MAIN.

Xliff commented 6 years ago

Sure. But here's the way I was thinking about implementing it:

Take global flag from main. Pass it to tasks. If it finds :$dry_run as truthy, then print task name and return.

Sure, it could probably use headers and such to indicate that a run is being dried, but that could be done in either MAIN or execute().