Compare commits
No commits in common. "ca981776e6d2a26ad56037de54d9381c8702732f" and "6b3987a39adfdd375c70ef12511a4eee0da02221" have entirely different histories.
ca981776e6
...
6b3987a39a
3 changed files with 7 additions and 15 deletions
|
|
@ -1,9 +1,3 @@
|
|||
## 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.0a1"
|
||||
version = "0.2.0a0"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail output console"
|
||||
|
|
|
|||
|
|
@ -119,15 +119,9 @@ class RougailOutputConsole:
|
|||
self.end()
|
||||
return True
|
||||
|
||||
def run(self) -> str:
|
||||
with self.console.capture() as capture:
|
||||
self.print()
|
||||
return capture.get()
|
||||
|
||||
def print(self) -> None:
|
||||
def run(self) -> None:
|
||||
self.exporter()
|
||||
for out in self.out:
|
||||
self.console.print(out)
|
||||
return self.print()
|
||||
|
||||
def parse_options(
|
||||
self,
|
||||
|
|
@ -222,6 +216,10 @@ 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