4 def get_output(cmd
, strip
=True):
6 output
= fd
.readlines()
9 output
= [x
.strip() for x
in output
]
12 def yield_output(cmd
):
14 for l
in fd
.xreadlines():
19 rc
= os
.system("%s > /dev/null 2>&1" % cmd
)
26 raise yap
.ShellError(cmd
, rc
)
28 def takes_options(options
):
30 func
.options
= options
34 def short_help(help_msg
):
36 func
.short_help
= help_msg
40 def long_help(help_msg
):
42 func
.long_help
= help_msg