Compare commits

..

2 commits

3 changed files with 11 additions and 13 deletions

View file

@ -1,16 +1,12 @@
## 0.1.0rc1 (2024-11-06)
## 0.1.1a0 (2024-11-28)
### Fix
- update rougail dependency
- separation between run and print function
## 0.1.0rc0 (2024-11-01)
## 0.1.0 (2024-11-28)
### Feat
- support auto_save variable
### Fix
- black
- license, pyproject and so on
- copy from rougail-output-exporter
- init commit

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail.output_json"
version = "0.1.0"
version = "0.1.1a0"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "Rougail output json"

View file

@ -77,7 +77,7 @@ class RougailOutputJson:
)
self.errors.append(f" - {option.description()}")
def exporter(self) -> bool:
def exporter(self) -> None:
self.config.property.read_write()
self.mandatory()
if self.read_write:
@ -96,11 +96,13 @@ class RougailOutputJson:
self.config,
self.dico,
)
return True
def run(self) -> None:
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(
self,