aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/cli.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-04-12 15:39:36 +0200
committerGitHub <noreply@github.com>2024-04-12 15:39:36 +0200
commite68bc649d63d51178d224be3af7109ca324480f4 (patch)
treea3993ee2833b7b5ac952a35617c7037132571b71 /zellij-utils/src/cli.rs
parentdocs(readme): update roadmap and remove extraneous section (#3252) (diff)
downloadsl0ppij-e68bc649d63d51178d224be3af7109ca324480f4.tar.gz
sl0ppij-e68bc649d63d51178d224be3af7109ca324480f4.tar.xz
sl0ppij-e68bc649d63d51178d224be3af7109ca324480f4.zip
feat(cli): allow starting a session detached (#3257)
* feat(cli): allow starting a session detached * fix tests
Diffstat (limited to 'zellij-utils/src/cli.rs')
-rw-r--r--zellij-utils/src/cli.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs
index 0388e599..ba189843 100644
--- a/zellij-utils/src/cli.rs
+++ b/zellij-utils/src/cli.rs
@@ -125,6 +125,10 @@ pub enum Sessions {
#[clap(short, long, value_parser)]
create: bool,
+ /// Create a detached session in the background if one does not exist
+ #[clap(short, long, value_parser)]
+ background: bool,
+
/// Number of the session index in the active sessions ordered creation date.
#[clap(long, value_parser)]
index: Option<usize>,