bugscpp.processor.core.command.DockerCommandScript¶
- class DockerCommandScript(command_type: taxonomy.taxonomy.CommandType, command: List[str])[source]¶
- Bases: - object- A list of “DockerCommand”s to be serially executed - Methods - __init__(command_type, command)- after()- Invoked after script is executed. - before()- Invoked before script is executed. - output(linenr, exit_code, output)- Invoked after each line is executed. - returns
- Return true if it should be written to a file and executed at once, 
 - step(linenr, line)- Invoked before each line is executed. - abstract output(linenr: Optional[int], exit_code: Optional[int], output: str)[source]¶
- Invoked after each line is executed. linenr is None if all commands are executed as if it is a script. - Parameters
- linenr (Optional[int]) – Index of the commands which has been executed. None if the type is CommandType.Script. 
- exit_code (Optional[int]) – Exit code of the executed command. None when stream is set to False. 
- output (str) – Captured stdout of the executed command.