diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-16 16:42:50 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-16 21:41:56 +0530 |
| commit | 2038947a14d32d89da2bdbcaa1381c3015ac9c7a (patch) | |
| tree | 5a332470e32b380816098594a89d3c3db1f6eb53 /src/cli.rs | |
| parent | handle error on termios initialization (#511) (diff) | |
| download | sl0ppij-2038947a14d32d89da2bdbcaa1381c3015ac9c7a.tar.gz sl0ppij-2038947a14d32d89da2bdbcaa1381c3015ac9c7a.tar.xz sl0ppij-2038947a14d32d89da2bdbcaa1381c3015ac9c7a.zip | |
Big refactor: separate crates for client, server and utilities
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/cli.rs b/src/cli.rs deleted file mode 100644 index 9ea84374..00000000 --- a/src/cli.rs +++ /dev/null @@ -1,51 +0,0 @@ -use super::common::utils::consts::{ZELLIJ_CONFIG_DIR_ENV, ZELLIJ_CONFIG_FILE_ENV}; -use crate::common::input::options::Options; -use crate::common::setup::Setup; -use serde::{Deserialize, Serialize}; -use std::path::PathBuf; -use structopt::StructOpt; - -#[derive(StructOpt, Default, Debug, Clone, Serialize, Deserialize)] -#[structopt(name = "zellij")] -pub struct CliArgs { - /// Maximum panes on screen, caution: opening more panes will close old ones - #[structopt(long)] - pub max_panes: Option<usize>, - - /// Change where zellij looks for layouts and plugins - #[structopt(long, parse(from_os_str))] - pub data_dir: Option<PathBuf>, - - /// Run server listening at the specified socket path - #[structopt(long, parse(from_os_str))] - pub server: Option<PathBuf>, - - /// Path to a layout yaml file - #[structopt(short, long, parse(from_os_str))] - pub layout: Option<PathBuf>, - - /// Change where zellij looks for the configuration - #[structopt(short, long, env=ZELLIJ_CONFIG_FILE_ENV, parse(from_os_str))] - pub config: Option<PathBuf>, - - /// Change where zellij looks for the configuration - #[structopt(long, env=ZELLIJ_CONFIG_DIR_ENV, parse(from_os_str))] - pub config_dir: Option<PathBuf>, - - #[structopt(subcommand)] - pub option: Option<ConfigCli>, - - #[structopt(short, long)] - pub debug: bool, -} - -#[derive(Debug, StructOpt, Clone, Serialize, Deserialize)] -pub enum ConfigCli { - /// Change the behaviour of zellij - #[structopt(name = "options")] - Options(Options), - - /// Setup zellij and check its configuration - #[structopt(name = "setup")] - Setup(Setup), -} |
