fixed a typo in detach code and added it to subcommand match
This commit is contained in:
parent
fea93cb263
commit
4eab373a42
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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),
|
||||
|
||||
|
|
Loading…
Reference in a new issue