Compare commits

..

No commits in common. "cc03dfe2e51978e64ed61d15b5f5c50d167753aa" and "94c6336f5d483cbbca6a1639de8ae90b95dfad19" have entirely different histories.

3 changed files with 13 additions and 11 deletions

View file

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

View file

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

View file

@ -77,7 +77,7 @@ class RougailOutputJson:
) )
self.errors.append(f" - {option.description()}") self.errors.append(f" - {option.description()}")
def exporter(self) -> None: def exporter(self) -> bool:
self.config.property.read_write() self.config.property.read_write()
self.mandatory() self.mandatory()
if self.read_write: if self.read_write:
@ -96,13 +96,11 @@ class RougailOutputJson:
self.config, self.config,
self.dico, self.dico,
) )
return True
def run(self) -> None: def run(self) -> None:
self.exporter() self.exporter()
return dumps(self.dico, ensure_ascii=False, indent=2) print(dumps(self.dico, ensure_ascii=False, indent=2))
def print(self) -> str:
print(self.run())
def parse_family( def parse_family(
self, self,