Skip to content

Tiny framework to build a command wrapper with local process or secure shell support.

Notifications You must be signed in to change notification settings

nimayneb/command-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command Wrapper

Tiny Framework to build a command wrapper with process support from Symfony.

use JBR\CommandWrapper\Cli\ArgumentValue;
use JBR\CommandWrapper\Cli\FlagSet;
use JBR\CommandWrapper\Commander;

$git = new Commander('git');
$result = $git->run([ new ArgumentValue('checkout'), new FlagSet('orphan', 'develop') ]);

if ($result->isSuccess()) {
    echo $result->getOutput();
} else {
    echo $result->getErrorOutput();
}

About

Tiny framework to build a command wrapper with local process or secure shell support.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages