Total Complexity | 1 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
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 | |||
25 |