'h' is now shortened version of 'has' instead of help

This commit is contained in:
Valerie Wolfe 2024-06-10 12:02:57 -04:00
parent 26f6fd5dd0
commit 1320b6f122
3 changed files with 5 additions and 4 deletions

View file

@ -31,7 +31,7 @@ remux a foo
# has # has
tmux h -t foo tmux h -t foo
remux has foo remux h foo
# detach # detach
tmux det -t foo tmux det -t foo

View file

@ -59,12 +59,13 @@ usage: remux detach <session>
args: args:
<session> The session name to detach clients from"), <session> The session name to detach clients from"),
Some("has") Some("h" | "has")
=> =>
println!("remux has println!("remux has
Check if the target session exists. Check if the target session exists.
usage: remux has [flags] <session> usage: remux has [flags] <session>
rmux h [flags] session
args: args:
<session> The session to check for <session> The session to check for

View file

@ -41,7 +41,7 @@ fn main() {
// invoke subcommand function // invoke subcommand function
match subcommand.as_deref() { match subcommand.as_deref() {
Some("h" | "help") Some("help")
=> help(&mut args), => help(&mut args),
Some("a" | "attach") Some("a" | "attach")
@ -50,7 +50,7 @@ fn main() {
Some("d" | "detach") Some("d" | "detach")
=> command::share::detach(&mut args), => command::share::detach(&mut args),
Some("has") Some("h" | "has")
=> command::share::has(&mut args), => command::share::has(&mut args),
None | None |