'which' command is now 'title'
This commit is contained in:
parent
e930af1027
commit
1f143f00ad
3 changed files with 6 additions and 6 deletions
|
@ -51,8 +51,8 @@ pub fn switch(state: &mut State) {
|
||||||
.output().ok();
|
.output().ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn which(state: State) {
|
pub fn title(state: State) {
|
||||||
state.session_enforce("which");
|
state.session_enforce("title");
|
||||||
if let Some(title) = state.title { println!("{title}"); }
|
if let Some(title) = state.title { println!("{title}"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ commands:
|
||||||
|
|
||||||
path print session path (session)
|
path print session path (session)
|
||||||
switch switch to another session (session)
|
switch switch to another session (session)
|
||||||
which print session title (session)
|
title print session title (session)
|
||||||
|
|
||||||
Use 'remux help <command>' to see detailed help text for each command.
|
Use 'remux help <command>' to see detailed help text for each command.
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ flags:
|
||||||
-n, --nest Create the session inside another session.
|
-n, --nest Create the session inside another session.
|
||||||
-t, --target <dir> Sets the target directory for the new session."),
|
-t, --target <dir> Sets the target directory for the new session."),
|
||||||
|
|
||||||
Some("root")
|
Some("p" | "path")
|
||||||
=>
|
=>
|
||||||
println!("remux path
|
println!("remux path
|
||||||
Print the session path (#{{session_path}}) to standard output.
|
Print the session path (#{{session_path}}) to standard output.
|
||||||
|
|
|
@ -61,8 +61,8 @@ fn main() {
|
||||||
Some("s" | "switch")
|
Some("s" | "switch")
|
||||||
=> command::session::switch(&mut state),
|
=> command::session::switch(&mut state),
|
||||||
|
|
||||||
Some("w" | "which" | "title")
|
Some("t" | "title" | "which")
|
||||||
=> command::session::which(state),
|
=> command::session::title(state),
|
||||||
|
|
||||||
_
|
_
|
||||||
=> error::no_subcommand(target.unwrap())
|
=> error::no_subcommand(target.unwrap())
|
||||||
|
|
Loading…
Reference in a new issue