Skip to content

Commit 571dbf8

Browse files
committed
An undocumented feature to push manual run strings to the clipboard
for terminals that might support it.
1 parent ea8e8de commit 571dbf8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/installer/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ async def on_mount(self) -> None:
102102
self.watch(body, 'scroll_y', self._on_y_scroll)
103103
self.next_button.focus()
104104
self.activate_panel(0)
105-
self.copy_to_clipboard('Testing, 1, 2, 3')
106105

107106
async def _on_y_scroll(self, y: int) -> None:
108107
log.write(f'on_y_scroll({y})\n')

tests/installer/panels/schedule_panel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ async def validate(self) -> bool:
100100
assert m is not None
101101
self.state.install_method = m
102102
m.install()
103+
if m.name == 'custom':
104+
self.app.copy_to_clipboard(m.preview)
103105
return True
104106
except Exception as ex:
105107
await ErrorDialog('Error scheduling tests', str(ex)).run(self.app)

0 commit comments

Comments
 (0)