diff options
author | Aram Drevekenin <aram@poor.dev> | 2022-11-01 09:07:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 09:07:25 +0100 |
commit | abc700fc4d10d61c969ad94fa520d7d9336dcf14 (patch) | |
tree | a2e6318c4fe3951236cfa758befce8b95393a26e /zellij-utils/src/cli.rs | |
parent | 6d29c6951e4768cc6f2f3c7b1bbb708d79d860c9 (diff) |
feat(command-panes): allow to start suspended (#1887)
* feat(command-panes): allow panes to start suspended
* style(fmt): remove unused code
* style(fmt): rustfmt
Diffstat (limited to 'zellij-utils/src/cli.rs')
-rw-r--r-- | zellij-utils/src/cli.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs index f860f05f9..baa53b9a7 100644 --- a/zellij-utils/src/cli.rs +++ b/zellij-utils/src/cli.rs @@ -141,6 +141,10 @@ pub enum Sessions { /// Close the pane immediately when its command exits #[clap(short, long, value_parser, default_value("false"), takes_value(false))] close_on_exit: bool, + + /// Start the command suspended, only running after you first presses ENTER + #[clap(short, long, value_parser, default_value("false"), takes_value(false))] + start_suspended: bool, }, /// Edit file with default $EDITOR / $VISUAL #[clap(visible_alias = "e")] @@ -252,6 +256,16 @@ pub enum CliAction { requires("command") )] close_on_exit: bool, + /// Start the command suspended, only running it after the you first press ENTER + #[clap( + short, + long, + value_parser, + default_value("false"), + takes_value(false), + requires("command") + )] + start_suspended: bool, }, /// Open the specified file in a new zellij pane with your default EDITOR Edit { |