Test Failed
Push — master ( 714282...4cb748 )
by P.R.
01:55 queued 13s
created

sdoc.command.SDoc1Command   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 23
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A SDoc1Command.handle() 0 8 1
1
from sdoc.command.BaseCommand import BaseCommand
2
from sdoc.SDoc import SDoc
3
4
5
class SDoc1Command(BaseCommand):
6
    """
7
    Parses a SDoc1 document and generates a SDoc2 document
8
9
    sdoc1
10
        {main.sdoc    : The SDoc1 document to parse}
11
        {output.sdoc2 : The generated SDoc document}
12
    """
13
14
    # ------------------------------------------------------------------------------------------------------------------
15
    def handle(self):
16
        """
17
        Reads the arguments and starts SDoc1 application.
18
        """
19
        sdoc = SDoc()
20
        sdoc.io = self.output
21
22
        return sdoc.run_sdoc1(self.input.get_argument('main.sdoc'), self.input.get_argument('output.sdoc2'))
23
24
# ----------------------------------------------------------------------------------------------------------------------
25