From cee42131b6249466ab499dad8b27eca3c891244e Mon Sep 17 00:00:00 2001 From: Denis P Date: Wed, 6 Nov 2019 13:57:44 +0100 Subject: [PATCH 1/3] takes root dir name if there's no project name in the manifest --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 716d9d3..f7915bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -134,7 +134,7 @@ fn main() { .map_or_else( || { error!("No metadata found. Use --manifest_path for execute"); - exit(-2); + project_dir.file_name().and_then(|x| x.to_str()).unwrap() }, |p| &p.name, ); From 75aa64371f17a46114c17d3916c2025d5260d5c1 Mon Sep 17 00:00:00 2001 From: "Denis S. Soldatov aka General-Beck" Date: Wed, 6 Nov 2019 19:28:18 +0300 Subject: [PATCH 2/3] Update README.md fix git clone url --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index db113dd..63cdf5f 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,6 @@ ARGS: ## How to install ```bash -git clone https://gitlab.parity.io/General-Beck/cargo-remote.git +git clone https://github.com/sgeisler/cargo-remote cargo install --path cargo-remote/ ``` From b0668598a191afcb23c872c85bc4974145797479 Mon Sep 17 00:00:00 2001 From: "Denis S. Soldatov aka General-Beck" Date: Wed, 6 Nov 2019 19:42:13 +0300 Subject: [PATCH 3/3] Update main.rs error -> info Setting the remote dir name like the local. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f7915bc..ea3405a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -133,7 +133,7 @@ fn main() { .find(|p| p.manifest_path == manifest_path) .map_or_else( || { - error!("No metadata found. Use --manifest_path for execute"); + info!("No metadata found. Setting the remote dir name like the local. Or use --manifest_path for execute"); project_dir.file_name().and_then(|x| x.to_str()).unwrap() }, |p| &p.name,