diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-05-12 22:37:17 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-05-14 11:45:19 +0200 |
| commit | d667e5ed81fbaef003fe9f01a4bcdbffe5dd0928 (patch) | |
| tree | a7389c2f167a743ef568db6cae4139ebf5b02e38 /src/cli.rs | |
| parent | Merge pull request #465 from a-kenji/set-data-dir (diff) | |
| download | sl0ppij-d667e5ed81fbaef003fe9f01a4bcdbffe5dd0928.tar.gz sl0ppij-d667e5ed81fbaef003fe9f01a4bcdbffe5dd0928.tar.xz sl0ppij-d667e5ed81fbaef003fe9f01a4bcdbffe5dd0928.zip | |
Add `check` flag to the setup subcommand
* The check option communicates default and config options to the user
as well as optional compile time features
* Move generate-completion from a subcommand to a flag in the setup
subcommand
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -1,5 +1,6 @@ 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; @@ -40,17 +41,7 @@ pub enum ConfigCli { #[structopt(name = "options")] Options(Options), - #[structopt(name = "generate-completion")] - GenerateCompletion { shell: String }, - + /// Setup zellij and check its configuration #[structopt(name = "setup")] - Setup { - /// Dump the default configuration file to stdout - #[structopt(long)] - dump_config: bool, - /// Disables loading of configuration file at default location, - /// loads the defaults that zellij ships with - #[structopt(long)] - clean: bool, - }, + Setup(Setup), } |
