fixed a typo in detach code and added it to subcommand match

This commit is contained in:
Valerie Wolfe 2023-05-01 10:50:47 -04:00
parent fea93cb263
commit 4eab373a42
2 changed files with 4 additions and 1 deletions

View file

@ -146,7 +146,7 @@ pub fn detach(pargs: &mut Arguments) {
let exists = tmux let exists = tmux
.has_session() .has_session()
.target_session(target.clone()) .target_session(target.clone())
.output.unwrap(); .output().unwrap();
if !exists.success() { error::no_target(target.to_string()); } if !exists.success() { error::no_target(target.to_string()); }
tmux tmux

View file

@ -19,6 +19,9 @@ fn main() {
Some("a" | "attach") Some("a" | "attach")
=> command::attach(&mut args), => command::attach(&mut args),
Some("d" | "detach")
=> command::detach(&mut args),
Some("has") Some("has")
=> command::has(&mut args), => command::has(&mut args),