Created
February 28, 2014 15:09
-
-
Save flamingbear/9272702 to your computer and use it in GitHub Desktop.
invoke example from docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from invoke import task, run | |
@task | |
def clean(): | |
print("Cleaning") | |
@task('clean') | |
def build(): | |
print("Building") | |
@task(pre=['build']) | |
def package(): | |
print("Packaging") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So this is the code directly from the documentation. But the basic commands are not performing as expected (by me anyway).
http://docs.pyinvoke.org/en/latest/concepts/execution.html#task-deduplication