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
- separation between run and print function
- update rougail dependency
## 0.1.0 (2024-11-28)
## 0.1.0rc0 (2024-11-01)
### Feat
- copy from rougail-output-exporter
- init commit
- support auto_save variable
### Fix
- black
- license, pyproject and so on

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail.output_json"
version = "0.1.1a0"
version = "0.1.0"
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) -> None:
def exporter(self) -> bool:
self.config.property.read_write()
self.mandatory()
if self.read_write:
@ -96,13 +96,11 @@ class RougailOutputJson:
self.config,
self.dico,
)
return True
def run(self) -> None:
self.exporter()
return dumps(self.dico, ensure_ascii=False, indent=2)
def print(self) -> str:
print(self.run())
print(dumps(self.dico, ensure_ascii=False, indent=2))
def parse_family(
self,