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

ShellCommand::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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