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
|
### Fix
|
||||||
|
|
||||||
- update rougail dependency
|
- separation between run and print function
|
||||||
|
|
||||||
## 0.1.0rc0 (2024-11-01)
|
## 0.1.0 (2024-11-28)
|
||||||
|
|
||||||
### Feat
|
### Feat
|
||||||
|
|
||||||
- support auto_save variable
|
- copy from rougail-output-exporter
|
||||||
|
- init commit
|
||||||
### Fix
|
|
||||||
|
|
||||||
- black
|
|
||||||
- license, pyproject and so on
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.output_json"
|
name = "rougail.output_json"
|
||||||
version = "0.1.0"
|
version = "0.1.1a0"
|
||||||
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"
|
||||||
|
|
|
||||||
|
|
@ -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