From 0e9f7e8c57ae4c732481d157cac0b5d448d888ff Mon Sep 17 00:00:00 2001 From: Will Hopkins Date: Sun, 23 Apr 2023 05:15:09 -0700 Subject: [PATCH] refactor!: make no args launch new session --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- client/main.rs | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 65e9072..d268559 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -936,7 +936,7 @@ dependencies = [ [[package]] name = "sesh-cli" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "clap", @@ -1055,7 +1055,7 @@ dependencies = [ [[package]] name = "term-sesh" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index 71c2054..8fab0ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "term-sesh" -version = "0.1.1" +version = "0.1.2" edition = "2021" authors = ["Will Hopkins "] license = "MIT" diff --git a/client/main.rs b/client/main.rs index 60f0965..1cbcc3f 100644 --- a/client/main.rs +++ b/client/main.rs @@ -527,7 +527,12 @@ async fn main() -> ExitCode { let cmd = match args.command { Some(cmd) => cmd, - None => Command::List, + None => Command::Start { + name: None, + program: None, + args: vec![], + detached: false, + }, }; if !server_sock.exists() { if matches!(cmd, Command::Shutdown)