diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-02 13:58:26 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-02 13:58:26 +0300 |
| commit | cf3769feb9837c6040820c3e6096c5cc2907adc0 (patch) | |
| tree | 1bf055988874a2e1c871bf4830a920a240108bda /src/app/api.rs | |
| parent | 2c422e60f1724ac5639c80abb73dc1f10a91b5c6 (diff) | |
feat: follow focused pane cwd for new workspaces
refs #919
Diffstat (limited to 'src/app/api.rs')
| -rw-r--r-- | src/app/api.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/app/api.rs b/src/app/api.rs index eeb1127f..8743c08f 100644 --- a/src/app/api.rs +++ b/src/app/api.rs @@ -1158,6 +1158,27 @@ fn agent_manifest_info( } #[cfg(test)] +pub(super) mod test_support { + pub(crate) fn exiting_test_command() -> &'static str { + #[cfg(windows)] + { + "C:\\Windows\\System32\\whoami.exe" + } + #[cfg(not(windows))] + { + "/usr/bin/true" + } + } + + pub(crate) fn shutdown_test_runtimes(app: &mut crate::app::App) { + let runtimes: Vec<_> = app.terminal_runtimes.drain().collect(); + for (_terminal_id, runtime) in runtimes { + runtime.shutdown(); + } + } +} + +#[cfg(test)] mod tests { use super::*; use crate::detect::{Agent, AgentState}; |
