File: task_kwargs.py

package info (click to toggle)
doit 0.36.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,704 kB
  • sloc: python: 11,863; makefile: 33; ansic: 14; javascript: 3; sh: 1
file content (13 lines) | stat: -rwxr-xr-x 333 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
def func_with_args(arg_first, arg_second):
    print(arg_first)
    print(arg_second)
    return True

def task_call_func():
    return {
        'actions': [(func_with_args, [], {
            'arg_second': 'This is a second argument.',
            'arg_first': 'This is a first argument.'})
        ],
        'verbosity': 2,
    }