2021-12-08 23:58:28 +00:00
|
|
|
<?php
|
|
|
|
|
2021-12-23 22:22:25 +00:00
|
|
|
namespace SparkPlug\Com\Noccy\Docker\Commands;
|
2021-12-08 23:58:28 +00:00
|
|
|
|
|
|
|
use Spark\Commands\Command;
|
|
|
|
use SparkPlug;
|
|
|
|
use Symfony\Component\Console\Input\InputInterface;
|
|
|
|
use Symfony\Component\Console\Output\OutputInterface;
|
|
|
|
|
|
|
|
class DockerExecCommand extends Command
|
|
|
|
{
|
|
|
|
protected function configure()
|
|
|
|
{
|
|
|
|
$this->setName("docker:exec")
|
|
|
|
->setDescription("Execute scripts in a docker container");
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function execute(InputInterface $input, OutputInterface $output)
|
|
|
|
{
|
|
|
|
$config = read_config("docker.json");
|
|
|
|
print_r($config);
|
|
|
|
return Command::SUCCESS;
|
|
|
|
}
|
|
|
|
}
|