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

0.4.2

上级 10e4c1e4
[package]
name = "roboplc-cli"
version = "0.4.2"
version = "0.4.3"
edition = "2021"
authors = ["Serhij S. <div@altertech.com>"]
license = "Apache-2.0"
......
......@@ -35,7 +35,7 @@ fn flash_file(
return crate::exec::exec(url, key, file, force, program_args);
}
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
.get()
.cloned()
......@@ -54,7 +54,7 @@ fn flash_file(
if run {
println!("Running docker image...");
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() {
None
} else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论