Completed
Pull Request — master (#9)
by ANTHONIUS
02:18
created

ShellCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A execute() 0 3 1
A configure() 0 4 1
1
<?php
2
3
namespace Dotfiles\Core\Command;
4
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\Console\Output\OutputInterface;
7
use Dotfiles\Core\Console\Shell;
8
9
/**
10
 * ShellCommand
11
 *
12
 * @author Anthonius Munthi [email protected]
13
 */
14
class ShellCommand extends Command
15
{
16
    protected function configure() {
17
        $this
18
            ->setName('shell')
19
            ->setDescription('Execute dotfiles shell')
20
        ;
21
    }
22
    
23
    protected function execute(InputInterface $input, OutputInterface $output) {
24
        $shell = new Shell($this->getApplication());
25
        $shell->run();
26
    }
27
}
28