aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-05-12 22:37:17 +0200
committera-kenji <aks.kenji@protonmail.com>2021-05-14 11:45:19 +0200
commitd667e5ed81fbaef003fe9f01a4bcdbffe5dd0928 (patch)
treea7389c2f167a743ef568db6cae4139ebf5b02e38 /src/cli.rs
parentMerge pull request #465 from a-kenji/set-data-dir (diff)
downloadsl0ppij-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.rs15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/cli.rs b/src/cli.rs
index b95b5770..69496808 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -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),
}