aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authordenis <denismaximov98@gmail.com>2021-04-09 14:14:50 +0300
committerdenis <denismaximov98@gmail.com>2021-04-09 14:14:50 +0300
commit748a7ffa6ea4cf3b2093adb30e27bea9117d40d6 (patch)
tree2e906db54b01ec1ce47f77ad2406690242d63c45 /src/cli.rs
parentwip: need to figure out how to clear lines (diff)
parentfeat(controls): add quick navigation (#260) (diff)
downloadsl0ppij-748a7ffa6ea4cf3b2093adb30e27bea9117d40d6.tar.gz
sl0ppij-748a7ffa6ea4cf3b2093adb30e27bea9117d40d6.tar.xz
sl0ppij-748a7ffa6ea4cf3b2093adb30e27bea9117d40d6.zip
wip: cleaning up a bit, need to map the colors to the right places in the palette
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 6e384e16..b1fb8f38 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -1,7 +1,7 @@
use std::path::PathBuf;
use structopt::StructOpt;
-#[derive(StructOpt, Debug, Default)]
+#[derive(StructOpt, Default, Debug)]
#[structopt(name = "zellij")]
pub struct CliArgs {
/// Send "split (direction h == horizontal / v == vertical)" to active zellij session
@@ -24,6 +24,21 @@ pub struct CliArgs {
#[structopt(short, long)]
pub layout: Option<PathBuf>,
+ #[structopt(subcommand)]
+ pub config: Option<ConfigCli>,
+
#[structopt(short, long)]
pub debug: bool,
}
+
+#[derive(Debug, StructOpt)]
+pub enum ConfigCli {
+ /// Path to the configuration yaml file
+ #[structopt(alias = "c")]
+ Config {
+ path: Option<PathBuf>,
+ #[structopt(long)]
+ /// Disables loading of configuration file at default location
+ clean: bool,
+ },
+}