Trees | Indices | Help |
|
---|
|
object --+ | Command
Wraps a shell command, so we don't have to store any kind of command line options in one of the git-buildpackage commands
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Run the command, convert all errors into CommandExecFailed, assumes that the lower levels printed an error message - only useful if you only expect 0 as result. >>> Command("/bin/true")(["foo", "bar"]) >>> Command("/foo/bar")() Traceback (most recent call last): ... CommandExecFailed |
x.__init__(...) initializes x; see help(type(x)) for signature
|
run self.cmd adding args as additional arguments Be verbose about errors and encode them in the return value, don't pass on exceptions. |
Like __call__ but don't use stderr and let the caller handle the return status >>> Command("/bin/true").call(["foo", "bar"]) 0 >>> Command("/foo/bar").call(["foo", "bar"]) # doctest:+ELLIPSIS Traceback (most recent call last): ... CommandExecFailed: Execution failed: ... |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Feb 28 07:25:22 2013 | http://epydoc.sourceforge.net |