php-spark/plugins/com.noccy.docker/DockerDownCommand.php

25 lines
581 B
PHP
Raw Normal View History

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