diff options
author | GPery <GPery@pm.me> | 2021-09-19 15:47:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-19 18:17:52 +0530 |
commit | b761a28702f0a13085bb8b2a516ed4a614971a31 (patch) | |
tree | b6e3fa5c515753f060fa547758ca46a6c00e3488 /zellij-utils/src/cli.rs | |
parent | eb22a6c1717fee65d1f5e6cab0a31aad0e7972a5 (diff) |
Implement `attach --create` subcommand flag to create session if one does not exist (#731)
* Implement attach --create
* fixup! Implement attach --create
* fixup! Implement attach --create
* fixup! Implement attach --create
* fixup! Implement attach --create
Diffstat (limited to 'zellij-utils/src/cli.rs')
-rw-r--r-- | zellij-utils/src/cli.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs index a8dc9c0aa..eb52589ae 100644 --- a/zellij-utils/src/cli.rs +++ b/zellij-utils/src/cli.rs @@ -85,6 +85,11 @@ pub enum Sessions { /// zellij client (if any) and attach to this. #[structopt(long, short)] force: bool, + + /// Create a session if one does not exist. + #[structopt(short, long)] + create: bool, + /// Change the behaviour of zellij #[structopt(subcommand, name = "options")] options: Option<SessionCommand>, |