diff options
| author | denis <denismaximov98@gmail.com> | 2021-04-09 14:14:50 +0300 |
|---|---|---|
| committer | denis <denismaximov98@gmail.com> | 2021-04-09 14:14:50 +0300 |
| commit | 748a7ffa6ea4cf3b2093adb30e27bea9117d40d6 (patch) | |
| tree | 2e906db54b01ec1ce47f77ad2406690242d63c45 /src/cli.rs | |
| parent | wip: need to figure out how to clear lines (diff) | |
| parent | feat(controls): add quick navigation (#260) (diff) | |
| download | sl0ppij-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.rs | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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, + }, +} |
