for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the dotfiles project.
*
* (c) Anthonius Munthi <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Dotfiles\Core\Command;
use Dotfiles\Core\Console\Shell;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* ShellCommand.
* @author Anthonius Munthi [email protected]
class ShellCommand extends Command
{
* @var Shell
private $shell;
public function __construct(?string $name = null, Shell $shell)
parent::__construct($name);
$this->shell = $shell;
}
protected function configure()
$this
->setName('shell')
->setDescription('Execute dotfiles shell')
;
protected function execute(InputInterface $input, OutputInterface $output)
$this->shell->run();