Implement Command::run for executing a Stream to completion

This commit is contained in:
Héctor Ramón Jiménez 2023-11-29 00:12:48 +01:00
parent 133f4da901
commit 3b7d479534
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 48 additions and 3 deletions

View file

@ -736,6 +736,9 @@ pub fn run_command<A, C, E>(
command::Action::Future(future) => {
runtime.spawn(future);
}
command::Action::Stream(stream) => {
runtime.run(stream);
}
command::Action::Clipboard(action) => match action {
clipboard::Action::Read(tag) => {
let message = tag(clipboard.read());