☰
Debian Codegraph
@
0.36.0-5
/
/
doc
/
samples
/
cmd_from_callable.py
☽
☼
doc/samples/cmd_from_callable.py
code
plain
raw
symbols
SCIP
MIT/X11
(c) 2008-2011 Eduardo Naufel Schettino
debian/copyright
1
from
doit.action
import
CmdAction
2
3
def
task_hello
():
4
"""hello cmd """
5
6
def
create_cmd_string
():
7
return
"echo hi"
8
9
return
{
10
'actions'
: [
CmdAction
(create_cmd_string)],
11
'verbosity'
:
2
,
12
}