diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-02-09 22:19:34 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-02-09 22:19:34 +0000 |
| commit | 979197085617a84992b38c7fd02098965e2479d5 (patch) | |
| tree | 4136a1d4f39254e72379d1204b62ce6b1e54d144 /src/cli.rs | |
| parent | Work towards a functional build (diff) | |
| download | sl0ppij-979197085617a84992b38c7fd02098965e2479d5.tar.gz sl0ppij-979197085617a84992b38c7fd02098965e2479d5.tar.xz sl0ppij-979197085617a84992b38c7fd02098965e2479d5.zip | |
Well, it turns out that I spent 4 hours on something impossible...
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs new file mode 100644 index 00000000..6fc5020b --- /dev/null +++ b/src/cli.rs @@ -0,0 +1,29 @@ +use std::path::PathBuf; +use structopt::StructOpt; + +#[derive(StructOpt, Debug, Default)] +#[structopt(name = "mosaic")] +pub struct CliArgs { + /// Send "split (direction h == horizontal / v == vertical)" to active mosaic session + #[structopt(short, long)] + pub split: Option<char>, + + /// Send "move focused pane" to active mosaic session + #[structopt(short, long)] + pub move_focus: bool, + + /// Send "open file in new pane" to active mosaic session + #[structopt(short, long)] + pub open_file: Option<PathBuf>, + + /// Maximum panes on screen, caution: opening more panes will close old ones + #[structopt(long)] + pub max_panes: Option<usize>, + + /// Path to a layout yaml file + #[structopt(short, long)] + pub layout: Option<PathBuf>, + + #[structopt(short, long)] + pub debug: bool, +} |
