Added CommandExecutorInterface
This commit is contained in:
parent
2d52c8dd01
commit
b3cf244944
35
PHPCI/Helper/CommandExecutorInterface.php
Normal file
35
PHPCI/Helper/CommandExecutorInterface.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
namespace PHPCI\Helper;
|
||||
|
||||
use \PHPCI\Logging\BuildLogger;
|
||||
|
||||
interface CommandExecutorInterface
|
||||
{
|
||||
/**
|
||||
* @param BuildLogger $logger
|
||||
* @param string $rootDir
|
||||
* @param bool $quiet
|
||||
* @param bool $verbose
|
||||
*/
|
||||
public function __construct(BuildLogger $logger, $rootDir, &$quiet = false, &$verbose = false);
|
||||
|
||||
/**
|
||||
* Executes shell commands. Accepts multiple arguments the first
|
||||
* is the template and everything else is inserted in. c.f. sprintf
|
||||
* @return bool Indicates success
|
||||
*/
|
||||
public function executeCommand();
|
||||
|
||||
/**
|
||||
* Returns the output from the last command run.
|
||||
*/
|
||||
public function getLastOutput();
|
||||
|
||||
/**
|
||||
* Find a binary required by a plugin.
|
||||
* @param string $binary
|
||||
* @return null|string
|
||||
*/
|
||||
public function findBinary($binary);
|
||||
}
|
Loading…
Reference in a new issue