From b91b5ecbe931dce2b1ec837793f3b21514d1bf39 Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Sun, 27 Oct 2019 22:14:42 +0000 Subject: [PATCH] Small fixes for Windows --- src/providers/github.rs | 4 ++-- src/providers/gitlab.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/providers/github.rs b/src/providers/github.rs index a17c5ff..ff01ccd 100644 --- a/src/providers/github.rs +++ b/src/providers/github.rs @@ -25,7 +25,7 @@ pub struct Repositories; #[structopt(about = "Add a Github user or organization by name")] pub struct GithubProvider { pub name: String, - #[structopt(long = "path", default_value = "github/")] + #[structopt(long = "path", default_value = "github")] #[structopt(about = "Clone repositories to a specific base path")] path: String, } @@ -34,7 +34,7 @@ impl fmt::Display for GithubProvider { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( f, - "Github user/org {} in path {}", + "Github user/org {} in directory {}", style(&self.name).green(), style(&self.path).green() ) diff --git a/src/providers/gitlab.rs b/src/providers/gitlab.rs index 38e4ab5..4476c03 100644 --- a/src/providers/gitlab.rs +++ b/src/providers/gitlab.rs @@ -57,7 +57,7 @@ pub enum GitlabProvider { #[serde(default = "public_gitlab_url")] #[structopt(long = "url", default_value = DEFAULT_GITLAB_URL)] url: String, - #[structopt(long = "path", default_value = "gitlab/")] + #[structopt(long = "path", default_value = "gitlab")] #[structopt(about = "Clone repositories to a specific base path")] path: String, }, @@ -68,14 +68,14 @@ impl fmt::Display for GitlabProvider { match &self { GitlabProvider::User { user, url, path } => write!( f, - "Gitlab user {} at {} in path {}", + "Gitlab user {} at {} in directory {}", style(user).green(), style(url).green(), style(path).green() ), GitlabProvider::Group { group, url, path } => write!( f, - "Gitlab group {} at {} in path {}", + "Gitlab group {} at {} in directory {}", style(group).green(), style(url).green(), style(path).green()