From 6a43b293ad9c34d685a1f4b2b178531f3c929dc5 Mon Sep 17 00:00:00 2001 From: Eric Seppanen Date: Wed, 28 Apr 2021 14:32:58 -0700 Subject: [PATCH] fix a few CLI typos --- control_plane/src/local_env.rs | 2 +- zenith/src/main.rs | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/control_plane/src/local_env.rs b/control_plane/src/local_env.rs index 78ef83ef99..efbabc0211 100644 --- a/control_plane/src/local_env.rs +++ b/control_plane/src/local_env.rs @@ -71,7 +71,7 @@ pub fn init() -> Result<()> { let cargo_path = env::current_dir()?; if !cargo_path.join("pageserver/Cargo.toml").exists() { anyhow::bail!( - "Current dirrectory does not look like a zenith repo. \ + "Current directory does not look like a zenith repo. \ Please, run 'init' from zenith repo root." ); } diff --git a/zenith/src/main.rs b/zenith/src/main.rs index 8cbd97e1ea..69a31efdae 100644 --- a/zenith/src/main.rs +++ b/zenith/src/main.rs @@ -34,10 +34,7 @@ fn main() -> Result<()> { .required(true); let matches = App::new("zenith") .about("Zenith CLI") - .subcommand( - SubCommand::with_name("init") - .about("Initialize a new Zenith repository in current directory"), - ) + .subcommand(SubCommand::with_name("init").about("Initialize a new Zenith repository")) .subcommand( SubCommand::with_name("branch") .about("Create a new branch") @@ -79,7 +76,7 @@ fn main() -> Result<()> { let repopath = zenith_repo_dir(); if !repopath.exists() { bail!( - "Zenith repository does not exists in {}.\n\ + "Zenith repository does not exist in {}.\n\ Set ZENITH_REPO_DIR or initialize a new repository with 'zenith init'", repopath.display() );