Skip to content

Commit

Permalink
Small fixes for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Oct 27, 2019
1 parent feca91d commit b91b5ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/providers/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand All @@ -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()
)
Expand Down
6 changes: 3 additions & 3 deletions src/providers/gitlab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -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()
Expand Down

0 comments on commit b91b5ec

Please sign in to comment.