提交 2ee04f39 authored 作者: Serhij S's avatar Serhij S

0.1.48

上级 0491168a
...@@ -533,7 +533,7 @@ dependencies = [ ...@@ -533,7 +533,7 @@ dependencies = [
[[package]] [[package]]
name = "roboplc-cli" name = "roboplc-cli"
version = "0.1.19" version = "0.1.20"
dependencies = [ dependencies = [
"ansi_term", "ansi_term",
"clap", "clap",
......
[package] [package]
name = "roboplc-cli" name = "roboplc-cli"
version = "0.1.19" version = "0.1.20"
edition = "2021" edition = "2021"
authors = ["Serhij S. <div@altertech.com>"] authors = ["Serhij S. <div@altertech.com>"]
license = "Apache-2.0" license = "Apache-2.0"
......
...@@ -29,8 +29,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { ...@@ -29,8 +29,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
if !u.starts_with("http://") && !u.starts_with("https://") { if !u.starts_with("http://") && !u.starts_with("https://") {
// try to get url from global config // try to get url from global config
if let Some(remote) = config::get_global_remote(u) { if let Some(remote) = config::get_global_remote(u) {
maybe_url = remote.url; if let Some(url) = remote.url {
maybe_key = remote.key; maybe_url = Some(url);
}
if let Some(key) = remote.key {
maybe_key = Some(key);
}
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论