Completed
Push — master ( 5db226...8f2faa )
by P.R.
03:03
created

SDocApplication.get_default_commands()   A

Complexity

Conditions 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.5786

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 13
ccs 1
cts 6
cp 0.1666
rs 9.4285
cc 1
crap 1.5786
1
"""
2
SDoc
3
4
Copyright 2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
# ----------------------------------------------------------------------------------------------------------------------
9 1
from cleo import Application
10
11 1
from sdoc.command.SDocCommand import SDocCommand
12 1
from sdoc.command.SDoc1Command import SDoc1Command
13 1
from sdoc.command.SDoc2Command import SDoc2Command
14
15
16
# ----------------------------------------------------------------------------------------------------------------------
17 1
class SDocApplication(Application):
18
    """
19
    The SDocApplication application.
20
    """
21
22
    # ------------------------------------------------------------------------------------------------------------------
23 1
    def __init__(self):
24
        """
25
        Object constructor.
26
        """
27
        Application.__init__(self, 'SDocApplication', '0.0.11')
28
29
    # ------------------------------------------------------------------------------------------------------------------
30 1
    def get_default_commands(self):
31
        """
32
        Returns the default commands of this application.
33
34
        :rtype: list[cleo.Command]
35
        """
36
        commands = Application.get_default_commands(self)
37
38
        self.add(SDocCommand())
39
        self.add(SDoc1Command())
40
        self.add(SDoc2Command())
41
42
        return commands
43
44
# ----------------------------------------------------------------------------------------------------------------------
45