diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-25 15:36:50 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-25 15:36:50 +0300 |
| commit | d4a5e02e8433db156b9dabe2b81ddd1d2aca9ea6 (patch) | |
| tree | f94ebdfc2bf1e54b3d110052269c67b6ba5f6fb8 /src/session.rs | |
| parent | a1543f3e248f8f5266322014ccd853e478b1dcd6 (diff) | |
feat: hand off ptys during updates
Diffstat (limited to 'src/session.rs')
| -rw-r--r-- | src/session.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/session.rs b/src/session.rs index f00797c0..d537a0f9 100644 --- a/src/session.rs +++ b/src/session.rs @@ -100,7 +100,11 @@ pub fn local_attach_command() -> String { } pub fn local_stop_command() -> String { - match active_name() { + stop_command_for(active_name().as_deref()) +} + +pub fn stop_command_for(name: Option<&str>) -> String { + match name { Some(name) => format!("herdr session stop {name}"), None => "herdr server stop".to_string(), } |
