merge branch 'dep-upgrade' into switch
This commit is contained in:
commit
d3aaf2e023
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ path = "src/main.rs"
|
|||
|
||||
[dependencies]
|
||||
pico-args = { version = "0.5.0", features = [ "combined-flags", "eq-separator" ] }
|
||||
termion = "2.0.1"
|
||||
termion = "3.0.0"
|
||||
tmux_interface = "0.3.2"
|
||||
|
||||
[profile.release]
|
||||
|
|
|
@ -131,7 +131,7 @@ pub fn list() {
|
|||
// pretty print session list
|
||||
println!("sessions:");
|
||||
for session in sessions.into_iter() {
|
||||
let group = session.group.unwrap_or("[untitled]".to_string());
|
||||
let group = session.name.unwrap_or("[untitled]".to_string());
|
||||
let id = session.id.unwrap();
|
||||
let attached = session.attached.unwrap_or(0) > 0;
|
||||
|
||||
|
@ -174,7 +174,7 @@ pub fn new(pargs: &mut Arguments) {
|
|||
}
|
||||
|
||||
let mut new = commands::NewSession::new();
|
||||
new = new.group_name(title);
|
||||
new = new.session_name(title);
|
||||
if let Some(command) = command { new.shell_command = Some(command.to_string_lossy()); }
|
||||
if detached { new.detached = true; }
|
||||
if let Ok(target_dir) = target_dir { new = new.start_directory(target_dir); }
|
||||
|
|
Loading…
Reference in a new issue