Compare commits
2 commits
94c6336f5d
...
cc03dfe2e5
| Author | SHA1 | Date | |
|---|---|---|---|
| cc03dfe2e5 | |||
| a0ccf61e22 |
3 changed files with 11 additions and 13 deletions
14
CHANGELOG.md
14
CHANGELOG.md
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue