php-spark/plugins/com.noccy.docker/Commands/DockerBuildCommand.php

25 lines
581 B
PHP

<?php
namespace SparkPlug\Com\Noccy\Docker\Commands;
use Spark\Commands\Command;
use SparkPlug;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class DockerBuildCommand extends Command
{
protected function configure()
{
$this->setName("docker:build")
->setDescription("Build an image");
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$config = read_config("docker.json");
print_r($config);
return Command::SUCCESS;
}
}