Passed
Pull Request — master (#9)
by ANTHONIUS
02:11
created

ShellCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A execute() 0 4 1
A configure() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of the dotfiles project.
5
 *
6
 *     (c) Anthonius Munthi <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Dotfiles\Core\Command;
13
14
use Dotfiles\Core\Console\Shell;
15
use Symfony\Component\Console\Input\InputInterface;
16
use Symfony\Component\Console\Output\OutputInterface;
17
18
/**
19
 * ShellCommand.
20
 *
21
 * @author Anthonius Munthi [email protected]
22
 */
23
class ShellCommand extends Command
24
{
25
    protected function configure()
26
    {
27
        $this
28
            ->setName('shell')
29
            ->setDescription('Execute dotfiles shell')
30
        ;
31
    }
32
33
    protected function execute(InputInterface $input, OutputInterface $output)
34
    {
35
        $shell = new Shell($this->getApplication());
36
        $shell->run();
37
    }
38
}
39