Completed
Push — master ( 3e3b0a...f0448f )
by Julien
05:46 queued 03:36
created

AddCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 7 1
A execute() 0 2 1
1
<?php
2
3
namespace TheAentMachine\AentDockerCompose\Command;
4
5
use Symfony\Component\Console\Command\Command;
6
use Symfony\Component\Console\Input\InputArgument;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
use Symfony\Component\Yaml\Yaml;
10
11
class AddCommand extends Command
12
{
13
    protected function configure()
14
    {
15
        $this
16
            ->setName(Cst::ADD_EVENT)
17
            ->setDescription("event from aenthill")
18
            ->setHelp('TODO')
19
            ->addArgument('payload', InputArgument::OPTIONAL, "The payload of the event");
20
    }
21
22
    protected function execute(InputInterface $input, OutputInterface $output)
23
    {
24
        /*
25
        $output->writeln("asking for docker services..", OutputInterface::VERBOSITY_VERBOSE);
26
27
        $outStr = Utils::hermesUtil("dispatch", Cst::ASK_DOCKER_SERVICE_EVENT, "{}");
28
        $output->writeln($outStr);
29
        */
30
    }
31
}
32