Skip to content

Commit

Permalink
refactor!: make no args launch new session
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Apr 23, 2023
1 parent 22484b7 commit 0e9f7e8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "term-sesh"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
authors = ["Will Hopkins <[email protected]>"]
license = "MIT"
Expand Down
7 changes: 6 additions & 1 deletion client/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0e9f7e8

Please sign in to comment.