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 and convert all errors into CommandExecFailed. Assumes that the lower levels printed an error message (the command itself and also via our logging api) - only useful if you only expect 0 as result.
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
run self.cmd adding args as additional arguments
|
Like __call__ but let the caller handle the return status and don't use the logging api for errors. >>> 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 Sat Dec 31 11:30:00 2016 | http://epydoc.sourceforge.net |