fix: separation between run and print function
This commit is contained in:
parent
94c6336f5d
commit
a0ccf61e22
1 changed files with 5 additions and 3 deletions
|
@ -77,7 +77,7 @@ class RougailOutputJson:
|
||||||
)
|
)
|
||||||
self.errors.append(f" - {option.description()}")
|
self.errors.append(f" - {option.description()}")
|
||||||
|
|
||||||
def exporter(self) -> bool:
|
def exporter(self) -> None:
|
||||||
self.config.property.read_write()
|
self.config.property.read_write()
|
||||||
self.mandatory()
|
self.mandatory()
|
||||||
if self.read_write:
|
if self.read_write:
|
||||||
|
@ -96,11 +96,13 @@ class RougailOutputJson:
|
||||||
self.config,
|
self.config,
|
||||||
self.dico,
|
self.dico,
|
||||||
)
|
)
|
||||||
return True
|
|
||||||
|
|
||||||
def run(self) -> None:
|
def run(self) -> None:
|
||||||
self.exporter()
|
self.exporter()
|
||||||
print(dumps(self.dico, ensure_ascii=False, indent=2))
|
return dumps(self.dico, ensure_ascii=False, indent=2)
|
||||||
|
|
||||||
|
def print(self) -> str:
|
||||||
|
print(self.run())
|
||||||
|
|
||||||
def parse_family(
|
def parse_family(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Reference in a new issue