From 5b384487331eaf08031dfe438bb2affa31aafcbb Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 8 Jul 2024 11:17:47 +0100 Subject: feat(gui): runbooks that run (#2233) * add initial runbooks frontend * fix buttons, scroll, add shell support to editor * work * some tweaks * wip - run crate * functioning executable blocks * handle resizing, killing ptys * clear properly on stop * move terminal to its own component, handle lifecycle better * fix all build issues * ffs codespelll * update lockfile * clippy is needy once more * only build pty stuff on mac/linux * vendor pty handling into desktop * update lockfile --- ui/backend/src/install.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/backend/src/install.rs') diff --git a/ui/backend/src/install.rs b/ui/backend/src/install.rs index 43ad0c54..17896e3a 100644 --- a/ui/backend/src/install.rs +++ b/ui/backend/src/install.rs @@ -24,7 +24,8 @@ pub(crate) async fn install_cli() -> Result<(), String> { pub(crate) async fn is_cli_installed() -> Result { let shell = Shell::default_shell().map_err(|e| format!("Failed to get default shell: {e}"))?; let output = if shell == Shell::Powershell { - shell.run_interactive(&["atuin --version; if ($?) {echo 'ATUIN FOUND'}"]) + shell + .run_interactive(&["atuin --version; if ($?) {echo 'ATUIN FOUND'}"]) .map_err(|e| format!("Failed to run interactive command"))? } else { shell -- cgit v1.3.1