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

SDocApplication   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 33.33%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
dl 0
loc 26
ccs 3
cts 9
cp 0.3333
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 5 1
A get_default_commands() 0 13 1
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