diff options
| author | Henil Dedania <dedaniahenil@gmail.com> | 2021-01-07 15:14:28 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-07 15:14:28 +0530 |
| commit | 0994c8abcd0f522362532ecbaa4900915d1c42f9 (patch) | |
| tree | 297b3e1f1b6a7b4fd70aa57d76720df148f625c2 /src/cli.rs | |
| parent | Merge pull request #131 from mosaic-org/mosaic#130 (diff) | |
| download | sl0ppij-0994c8abcd0f522362532ecbaa4900915d1c42f9.tar.gz sl0ppij-0994c8abcd0f522362532ecbaa4900915d1c42f9.tar.xz sl0ppij-0994c8abcd0f522362532ecbaa4900915d1c42f9.zip | |
feat(completions): Add shell completions files (#128)
* Add shell completions and output files to `assets/completions`
* Rename files and struct name
* Update tests to take into account new changes
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, +} |
