Compare commits
2 commits
6b3987a39a
...
ca981776e6
| Author | SHA1 | Date | |
|---|---|---|---|
| ca981776e6 | |||
| 4c2e9e9a86 |
3 changed files with 15 additions and 7 deletions
|
|
@ -1,3 +1,9 @@
|
|||
## 0.2.0a1 (2024-11-28)
|
||||
|
||||
### Fix
|
||||
|
||||
- separation between run and print function
|
||||
|
||||
## 0.2.0a0 (2024-11-27)
|
||||
|
||||
### Feat
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail.output_console"
|
||||
version = "0.2.0a0"
|
||||
version = "0.2.0a1"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail output console"
|
||||
|
|
|
|||
|
|
@ -119,9 +119,15 @@ class RougailOutputConsole:
|
|||
self.end()
|
||||
return True
|
||||
|
||||
def run(self) -> None:
|
||||
def run(self) -> str:
|
||||
with self.console.capture() as capture:
|
||||
self.print()
|
||||
return capture.get()
|
||||
|
||||
def print(self) -> None:
|
||||
self.exporter()
|
||||
return self.print()
|
||||
for out in self.out:
|
||||
self.console.print(out)
|
||||
|
||||
def parse_options(
|
||||
self,
|
||||
|
|
@ -216,10 +222,6 @@ class RougailOutputConsole:
|
|||
def end(self):
|
||||
self.out.append(self.output.tree)
|
||||
|
||||
def print(self):
|
||||
for out in self.out:
|
||||
self.console.print(out)
|
||||
|
||||
|
||||
class OutputFamily:
|
||||
def __init__(
|
||||
|
|
|
|||
Loading…
Reference in a new issue