Passed
Push — cmd ( 8f0602...12f0fc )
by Arnaud
13:59 queued 09:23
created

About::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 7
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of Cecil.
7
 *
8
 * Copyright (c) Arnaud Ligny <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Cecil\Command;
15
16
use Cecil\Builder;
17
use Symfony\Component\Console\Input\InputInterface;
18
use Symfony\Component\Console\Output\OutputInterface;
19
20
/**
21
 * About Cecil.
22
 */
23
class About extends AbstractCommand
24
{
25
    /**
26
     * {@inheritdoc}
27
     */
28
    protected function configure()
29
    {
30
        $this
31
            ->setName('about')
32
            ->setDescription('Shows a short description about Cecil')
33
            ->setHelp(
34
                <<<'EOF'
35
The <info>%command.name%</> command displays a short description about Cecil.
36
EOF
37
            );
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    protected function execute(InputInterface $input, OutputInterface $output)
44
    {
45
        $version = Builder::VERSION;
46
47
        $this->io->text([
48
            "<info>Cecil - A simple and powerful content-driven static site generator - version $version</>",
49
            "See <href=https://cecil.app>https://cecil.app</> for more information."
50
        ]);
51
52
        return 0;
53
    }
54
}
55