summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2022-10-28 13:03:37 +0200
committerGitHub <noreply@github.com>2022-10-28 13:03:37 +0200
commitc97b972383d50ae6db750d4d7f2441232e41ba4c (patch)
tree448c6f3d626e7c405ec1e54c2be2ccf5a6bd2be7 /src
parenteed9541a74879e1ec683beda13ccfda7e63bfa88 (diff)
feat(command-panes): optionally allow panes to be closed on exit (#1869)
* feat(cli): allow option to close command pane on exit * feat(layouts): allow option to close command panes on exit * style(fmt): rustfmt
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 3df61c42e..3ed592c53 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -25,6 +25,7 @@ fn main() {
cwd,
floating,
name,
+ close_on_exit,
})) = opts.command
{
let command_cli_action = CliAction::NewPane {
@@ -33,6 +34,7 @@ fn main() {
cwd,
floating,
name,
+ close_on_exit,
};
commands::send_action_to_session(command_cli_action, opts.session);
std::process::exit(0);