This commit is contained in:
parent
0f45b38432
commit
edb56e96dc
22 changed files with 134 additions and 82 deletions
|
@ -47,7 +47,7 @@ class CodeBuilder(worker.utils.Builder):
|
|||
|
||||
# Call command with in compiler environment.
|
||||
def call(
|
||||
self, cmd: worker.utils.CmdSequence, env: worker.utils.CmdEnvironment = None
|
||||
self, cmd: worker.utils.CmdSequence, env: worker.utils.Cmdenvironment = None
|
||||
) -> int:
|
||||
cmd_prefix: worker.utils.CmdList = []
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ CmdArgument = Union[str, pathlib.Path, HiddenArgument, Any]
|
|||
CmdList = List[CmdArgument]
|
||||
CmdSequence = Sequence[CmdArgument]
|
||||
CmdFilterOutput = Optional[Callable[[str], Optional[str]]]
|
||||
CmdEnvironment = Optional[Dict[str, str]]
|
||||
Cmdenvironment = Optional[Dict[str, str]]
|
||||
|
||||
|
||||
def _prepare_call(
|
||||
|
@ -142,7 +142,7 @@ def _prepare_call(
|
|||
|
||||
def call(
|
||||
cmd: CmdSequence,
|
||||
env: CmdEnvironment = None,
|
||||
env: Cmdenvironment = None,
|
||||
exit_on_error: bool = True,
|
||||
filter_output: CmdFilterOutput = None,
|
||||
retry_count: int = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue