pyallel 2.0.3__tar.gz → 2.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyallel-2.0.3 → pyallel-2.0.4}/PKG-INFO +1 -1
- {pyallel-2.0.3 → pyallel-2.0.4}/pyproject.toml +1 -1
- {pyallel-2.0.3 → pyallel-2.0.4}/src/pyallel/printer.py +7 -5
- {pyallel-2.0.3 → pyallel-2.0.4}/LICENSE +0 -0
- {pyallel-2.0.3 → pyallel-2.0.4}/README.md +0 -0
- {pyallel-2.0.3 → pyallel-2.0.4}/src/pyallel/__init__.py +0 -0
- {pyallel-2.0.3 → pyallel-2.0.4}/src/pyallel/colours.py +0 -0
- {pyallel-2.0.3 → pyallel-2.0.4}/src/pyallel/constants.py +0 -0
- {pyallel-2.0.3 → pyallel-2.0.4}/src/pyallel/errors.py +0 -0
- {pyallel-2.0.3 → pyallel-2.0.4}/src/pyallel/main.py +0 -0
- {pyallel-2.0.3 → pyallel-2.0.4}/src/pyallel/parser.py +0 -0
- {pyallel-2.0.3 → pyallel-2.0.4}/src/pyallel/process.py +0 -0
- {pyallel-2.0.3 → pyallel-2.0.4}/src/pyallel/process_group.py +0 -0
- {pyallel-2.0.3 → pyallel-2.0.4}/src/pyallel/process_group_manager.py +0 -0
- {pyallel-2.0.3 → pyallel-2.0.4}/src/pyallel/py.typed +0 -0
|
@@ -41,7 +41,7 @@ class ConsolePrinter:
|
|
|
41
41
|
columns = columns or constants.COLUMNS()
|
|
42
42
|
if prefix:
|
|
43
43
|
truncate_num = 6
|
|
44
|
-
if truncate:
|
|
44
|
+
if prefix and truncate:
|
|
45
45
|
columns = columns - truncate_num
|
|
46
46
|
if self.get_num_lines(line, columns) > 1:
|
|
47
47
|
line = self.truncate_line(line, columns)
|
|
@@ -108,8 +108,10 @@ class ConsolePrinter:
|
|
|
108
108
|
output: ProcessOutput,
|
|
109
109
|
include_progress: bool = True,
|
|
110
110
|
include_timer: bool | None = None,
|
|
111
|
+
columns: int | None = None,
|
|
111
112
|
) -> str:
|
|
112
113
|
include_timer = include_timer if include_timer is not None else self._timer
|
|
114
|
+
columns = columns or constants.COLUMNS()
|
|
113
115
|
|
|
114
116
|
passed = None
|
|
115
117
|
icon = ""
|
|
@@ -143,11 +145,11 @@ class ConsolePrinter:
|
|
|
143
145
|
timer = f"({self.format_time_taken(elapsed)})"
|
|
144
146
|
|
|
145
147
|
command = output.process.command
|
|
146
|
-
if self.get_num_lines(output.process.command) > 1:
|
|
147
|
-
columns = constants.COLUMNS() - (len(msg) + len(timer) + 9)
|
|
148
|
-
command = self.truncate_line(command, columns)
|
|
149
|
-
|
|
150
148
|
out = f"{self._colours.white_bold}[{self._colours.reset_colour}{self._colours.blue_bold}{command}{self._colours.reset_colour}{self._colours.white_bold}]{self._colours.reset_colour}{colour} {msg} {icon}{self._colours.reset_colour}"
|
|
149
|
+
if self.get_num_lines(out, columns) > 1:
|
|
150
|
+
columns = columns - (len(msg) + len(timer) + 9)
|
|
151
|
+
command = self.truncate_line(command, columns)
|
|
152
|
+
out = f"{self._colours.white_bold}[{self._colours.reset_colour}{self._colours.blue_bold}{command}{self._colours.reset_colour}{self._colours.white_bold}]{self._colours.reset_colour}{colour} {msg} {icon}{self._colours.reset_colour}"
|
|
151
153
|
|
|
152
154
|
if timer:
|
|
153
155
|
out += f" {self._colours.dim_on}{timer}{self._colours.dim_off}"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|