diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-07 16:21:38 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-07 16:21:38 +0000 |
| commit | 70e16f80b1fb3500454b7ae11db9db404b765216 (patch) | |
| tree | 2a66501fcb70037fbc6b80b498272d0fbfe60d7f /src/cli.rs | |
| parent | Finished plugin system! (Added file opening) (diff) | |
| parent | chore(cleanup): Clean up project root (#135) (diff) | |
| download | sl0ppij-70e16f80b1fb3500454b7ae11db9db404b765216.tar.gz sl0ppij-70e16f80b1fb3500454b7ae11db9db404b765216.tar.xz sl0ppij-70e16f80b1fb3500454b7ae11db9db404b765216.zip | |
Merge in changes from main and fix a clippy lint
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, +} |
