Skip to content

Instantly share code, notes, and snippets.

@flamingbear
Created February 28, 2014 15:09
Show Gist options
  • Save flamingbear/9272702 to your computer and use it in GitHub Desktop.
Save flamingbear/9272702 to your computer and use it in GitHub Desktop.
invoke example from docs
from invoke import task, run
@task
def clean():
print("Cleaning")
@task('clean')
def build():
print("Building")
@task(pre=['build'])
def package():
print("Packaging")
@flamingbear
Copy link
Author

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

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