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
.has_session()
.target_session(target.clone())
.output.unwrap();
.output().unwrap();
if !exists.success() { error::no_target(target.to_string()); }
tmux

View file

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