summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/cli.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2023-02-26 22:11:08 +0100
committerGitHub <noreply@github.com>2023-02-26 22:11:08 +0100
commit52de5b7db048d944ca6df93192be9b0e54fd7269 (patch)
treed039e13654fcae533dbeed8754315de918a49303 /zellij-utils/src/cli.rs
parenta1f563517681d91bc44e549c038a2af6a60ea718 (diff)
fix(cli): new-tab now also looks in layout_dir for layouts (#2198)
* fix(cli): the new-tab action now also searches for layouts in the layout dir * style(fmt): rustfmt * fix(tests): add missing parameter to cli action
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 ea0b8d728..40d451d19 100644
--- a/zellij-utils/src/cli.rs
+++ b/zellij-utils/src/cli.rs
@@ -352,6 +352,10 @@ pub enum CliAction {
#[clap(short, long, value_parser)]
layout: Option<PathBuf>,
+ /// Default folder to look for layouts
+ #[clap(short, long, value_parser, requires("layout"))]
+ layout_dir: Option<PathBuf>,
+
/// Name of the new tab
#[clap(short, long, value_parser)]
name: Option<String>,