提交 e007c0f7 authored 作者: Serhij S's avatar Serhij S

0.4.2

上级 10e4c1e4
[package] [package]
name = "roboplc-cli" name = "roboplc-cli"
version = "0.4.2" version = "0.4.3"
edition = "2021" edition = "2021"
authors = ["Serhij S. <div@altertech.com>"] authors = ["Serhij S. <div@altertech.com>"]
license = "Apache-2.0" license = "Apache-2.0"
......
...@@ -35,7 +35,7 @@ fn flash_file( ...@@ -35,7 +35,7 @@ fn flash_file(
return crate::exec::exec(url, key, file, force, program_args); return crate::exec::exec(url, key, file, force, program_args);
} }
if let Some(docker_img) = url.strip_prefix("docker://") { if let Some(docker_img) = url.strip_prefix("docker://") {
let tag = std::env::var("ROBO_DOCKER_TAG").unwrap_or_else(|_| { let tag = std::env::var("ROBOPLC_DOCKER_TAG").unwrap_or_else(|_| {
crate::TARGET_PACKAGE_VERSION crate::TARGET_PACKAGE_VERSION
.get() .get()
.cloned() .cloned()
...@@ -54,7 +54,7 @@ fn flash_file( ...@@ -54,7 +54,7 @@ fn flash_file(
if run { if run {
println!("Running docker image..."); println!("Running docker image...");
let mut args = vec!["run", "--rm", "-it"]; let mut args = vec!["run", "--rm", "-it"];
let port = std::env::var("ROBO_DOCKER_PORT").unwrap_or_else(|_| "7700".to_owned()); let port = std::env::var("ROBOPLC_DOCKER_PORT").unwrap_or_else(|_| "7700".to_owned());
let port_mapping = if port.is_empty() { let port_mapping = if port.is_empty() {
None None
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论