chore: release v0.3.3

This commit is contained in:
Jack Wills
2023-10-21 16:25:42 +00:00
parent 8ecec7869c
commit 09bf70abd2
7 changed files with 36 additions and 28 deletions
+3 -6
View File
@@ -69,12 +69,9 @@ fn check_if_containerised() -> bool {
/// Read the optional docker_host path, the cli args take priority over the DOCKER_HOST env
fn read_docker_host(args: &CliArgs) -> Option<String> {
args.host.as_ref().map_or_else(
|| {
std::env::var(DOCKER_HOST).ok()
},
|x| Some(x.to_string()),
)
args.host
.as_ref()
.map_or_else(|| std::env::var(DOCKER_HOST).ok(), |x| Some(x.to_string()))
}
/// Create docker daemon handler, and only spawn up the docker data handler if a ping returns non-error