From 1f143f00ad4f817439001f09601db7f5e3ec5838 Mon Sep 17 00:00:00 2001 From: Valerie Date: Mon, 1 Jul 2024 09:53:52 -0400 Subject: [PATCH] 'which' command is now 'title' --- src/command/session.rs | 4 ++-- src/help.rs | 4 ++-- src/main.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/command/session.rs b/src/command/session.rs index f030db6..86ae726 100644 --- a/src/command/session.rs +++ b/src/command/session.rs @@ -51,8 +51,8 @@ pub fn switch(state: &mut State) { .output().ok(); } -pub fn which(state: State) { - state.session_enforce("which"); +pub fn title(state: State) { + state.session_enforce("title"); if let Some(title) = state.title { println!("{title}"); } } diff --git a/src/help.rs b/src/help.rs index d789deb..7692464 100644 --- a/src/help.rs +++ b/src/help.rs @@ -25,7 +25,7 @@ commands: path print session path (session) switch switch to another session (session) - which print session title (session) + title print session title (session) Use 'remux help ' to see detailed help text for each command. @@ -102,7 +102,7 @@ flags: -n, --nest Create the session inside another session. -t, --target Sets the target directory for the new session."), - Some("root") + Some("p" | "path") => println!("remux path Print the session path (#{{session_path}}) to standard output. diff --git a/src/main.rs b/src/main.rs index 14f8f04..9ff9e28 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,8 +61,8 @@ fn main() { Some("s" | "switch") => command::session::switch(&mut state), - Some("w" | "which" | "title") - => command::session::which(state), + Some("t" | "title" | "which") + => command::session::title(state), _ => error::no_subcommand(target.unwrap())