File: integration.py

package info (click to toggle)
python-invoke 0.11.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,136 kB
  • ctags: 1,702
  • sloc: python: 5,614; makefile: 37; sh: 36
file content (38 lines) | stat: -rw-r--r-- 482 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from invoke.tasks import task


@task
def print_foo():
    print("foo")

@task
def print_name(name):
    print(name)

@task
def print_underscored_arg(my_option):
    print(my_option)

@task
def foo():
    print("foo")

@task(foo)
def bar():
    print("bar")

@task
def post2():
    print("post2")

@task(post=[post2])
def post1():
    print("post1")

@task(foo, bar, post=[post1, post2])
def biz():
    print("biz")

@task(bar, foo, post=[post2, post1])
def boz():
    print("boz")