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

Implement --dry-run command line argument #20

Open
AlexDaniel opened this issue Jun 27, 2018 · 3 comments
Open

Implement --dry-run command line argument #20

AlexDaniel opened this issue Jun 27, 2018 · 3 comments

Comments

@AlexDaniel
Copy link
Member

AlexDaniel commented Jun 27, 2018

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

@Xliff
Copy link

Xliff commented Jun 27, 2018

@AlexDaniel,

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

@AlexDaniel
Copy link
Member Author

I was thinking about a global flag in MAIN.

@Xliff
Copy link

Xliff commented Jun 27, 2018

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().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants