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
|
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
|
||||||
|
|
|
@ -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),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue