ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

reverse log collections

+6 -6
+3 -4
wire/lib/src/commands/interactive.rs
··· 1 1 // SPDX-License-Identifier: AGPL-3.0-or-later 2 2 // Copyright 2024-2025 wire Contributors 3 3 4 + use itertools::Itertools; 4 5 use nix::sys::termios::{LocalFlags, SetArg, Termios, tcgetattr, tcsetattr}; 5 6 use nix::{ 6 7 poll::{PollFd, PollFlags, PollTimeout, poll}, ··· 319 320 let _ = posix_write(&self.cancel_stdin_pipe_w, THREAD_QUIT_SIGNAL); 320 321 321 322 if let Some(true) = success { 322 - let mut collection = self.stdout_collection.lock().unwrap(); 323 - let logs = collection.make_contiguous().join("\n"); 323 + let logs = self.stdout_collection.lock().unwrap().iter().rev().join("\n"); 324 324 325 325 return Ok((exit_status, logs)); 326 326 } 327 327 328 328 debug!("child did not succeed"); 329 329 330 - let mut collection = self.stderr_collection.lock().unwrap(); 331 - let logs = collection.make_contiguous().join("\n"); 330 + let logs = self.stderr_collection.lock().unwrap().iter().rev().join("\n"); 332 331 333 332 Err(CommandError::CommandFailed { 334 333 command_ran: self.original_command,
+3 -2
wire/lib/src/commands/noninteractive.rs
··· 126 126 .error_collection 127 127 .lock() 128 128 .await 129 - .make_contiguous() 129 + .iter() 130 + .rev() 130 131 .join("\n"); 131 132 132 133 return Err(CommandError::CommandFailed { ··· 140 141 }); 141 142 } 142 143 143 - let stdout = self.stdout_collection.lock().await.iter().join("\n"); 144 + let stdout = self.stdout_collection.lock().await.iter().rev().join("\n"); 144 145 145 146 Ok((status, stdout)) 146 147 }