From edd162a6859b0ed69e1e1bf537771282403db6bd Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Sat, 4 May 2024 14:55:19 +0300 Subject: [PATCH 1/2] feat: yazi --debug shows `ya` version in its output Solves https://github.com/sxyazi/yazi/issues/995 --- yazi-boot/src/boot.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yazi-boot/src/boot.rs b/yazi-boot/src/boot.rs index a007bf32e..055defe05 100644 --- a/yazi-boot/src/boot.rs +++ b/yazi-boot/src/boot.rs @@ -55,6 +55,9 @@ impl Boot { writeln!(s, " OS: {}-{} ({})", OS, ARCH, FAMILY)?; writeln!(s, " Debug: {}", cfg!(debug_assertions))?; + writeln!(s, "\nYa")?; + writeln!(s, " Version: {:?}", Command::new("ya").args(["--version"]).output())?; + writeln!(s, "\nEmulator")?; writeln!(s, " Emulator.via_env: {:?}", yazi_adaptor::Emulator::via_env())?; writeln!(s, " Emulator.via_csi: {:?}", yazi_adaptor::Emulator::via_csi())?; From ab5b56a82432978ca2455088a7d585942788deea Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 4 May 2024 22:16:54 +0800 Subject: [PATCH 2/2] .. --- yazi-boot/src/boot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yazi-boot/src/boot.rs b/yazi-boot/src/boot.rs index 055defe05..f2cab5ad1 100644 --- a/yazi-boot/src/boot.rs +++ b/yazi-boot/src/boot.rs @@ -56,7 +56,7 @@ impl Boot { writeln!(s, " Debug: {}", cfg!(debug_assertions))?; writeln!(s, "\nYa")?; - writeln!(s, " Version: {:?}", Command::new("ya").args(["--version"]).output())?; + writeln!(s, " Version: {:?}", Command::new("ya").arg("--version").output())?; writeln!(s, "\nEmulator")?; writeln!(s, " Emulator.via_env: {:?}", yazi_adaptor::Emulator::via_env())?;