A hook run by one of the scripts
Method __init__ Undocumented
Method __call__ Run the command and raise exception on errors
Static Method md Merge two dictionaries a and b into a new one

Inherited from Command (via RunAtCommand):

Method call Like L{__call__} but let the caller handle the return status.
Static Method _f Build error string template
Method _reset_state Undocumented
Method __call Wraps subprocess.call so we can be verbose and fix Python's SIGPIPE handling
Method _log_err Log an error message
Method _format_err Log an error message
def __init__(self, name, cmd, extra_env):
Undocumented
def __call__(self, *args, **kwargs):
Run the command and raise exception on errors

If run quietly it will not print an error message via the
L{gbp.log} logging API.

Whether the command prints anything to stdout/stderr depends on
the I{capture_stderr}, I{capture_stdout} instance variables.

All errors will be reported as subclass of the
L{CommandExecFailed} exception including a non zero exit
status of the run command.

@param args: additional command line arguments
@type  args: C{list} of C{strings}
@param quiet: don't log failed execution to stderr. Mostly useful during
    unit testing
@type quiet: C{bool}

>>> Command("/bin/true")(["foo", "bar"])
>>> Command("/foo/bar")(quiet=True) # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
gbp.command_wrappers.CommandExecFailed
@staticmethod
def md(a, b):
Merge two dictionaries a and b into a new one
API Documentation for git-buildpackage, generated by pydoctor at 2019-09-07 17:58:51.