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)
|
## 0.2.0a0 (2024-11-27)
|
||||||
|
|
||||||
### Feat
|
### Feat
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.output_console"
|
name = "rougail.output_console"
|
||||||
version = "0.2.0a1"
|
version = "0.2.0a0"
|
||||||
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 console"
|
description = "Rougail output console"
|
||||||
|
|
|
||||||
|
|
@ -119,15 +119,9 @@ class RougailOutputConsole:
|
||||||
self.end()
|
self.end()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def run(self) -> str:
|
def run(self) -> None:
|
||||||
with self.console.capture() as capture:
|
|
||||||
self.print()
|
|
||||||
return capture.get()
|
|
||||||
|
|
||||||
def print(self) -> None:
|
|
||||||
self.exporter()
|
self.exporter()
|
||||||
for out in self.out:
|
return self.print()
|
||||||
self.console.print(out)
|
|
||||||
|
|
||||||
def parse_options(
|
def parse_options(
|
||||||
self,
|
self,
|
||||||
|
|
@ -222,6 +216,10 @@ class RougailOutputConsole:
|
||||||
def end(self):
|
def end(self):
|
||||||
self.out.append(self.output.tree)
|
self.out.append(self.output.tree)
|
||||||
|
|
||||||
|
def print(self):
|
||||||
|
for out in self.out:
|
||||||
|
self.console.print(out)
|
||||||
|
|
||||||
|
|
||||||
class OutputFamily:
|
class OutputFamily:
|
||||||
def __init__(
|
def __init__(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue