1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pub(crate) trait CommandDebug {
	fn debug(&mut self) -> &mut Self;
}
//
//impl CommandDebug for tokio::process::Command {
//	fn debug(&mut self) -> &mut Self {
//		let path = Path::new(self.as_std().get_program());
//		let s = self.as_std().get_args().fold(vec![], |mut a: Vec<&OsStr>, b: &OsStr| {
//			a.push(b);
//			a
//		});
//		log!(
//			log::Level::Debug,
//			"Executing `{} {}`...",
//			path.file_name().unwrap().to_str().unwrap(),
//			s.join(OsString::from(" ").as_os_str()).to_str().unwrap().trim()
//		);
//		self
//	}
//}