Skip to content

Commit

Permalink
Release ecFlow Light 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosbento committed Jun 26, 2023
2 parents 214e2c6 + 0ec05fd commit 94fabe3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ find_package( ecbuild 3.7 REQUIRED
# Project Definitions/Languages

project( ecflow_light
VERSION 1.0.0
VERSION 1.0.1
LANGUAGES C CXX Fortran )

set(CMAKE_CXX_STANDARD 17)
Expand Down
17 changes: 11 additions & 6 deletions src/libecflow_light/ecflow/light/ClientAPI.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <charconv>
#include <cstdlib>
#include <memory>
#include <optional>
#include <regex>

#include <eckit/config/LocalConfiguration.h>
Expand All @@ -32,12 +33,12 @@ namespace ecflow::light {

std::ostream& operator<<(std::ostream& os, const ClientCfg& cfg) {
os << R"({)";
os << R"("kind":")" << cfg.kind << R"(",)";
os << R"("protocol":")" << cfg.protocol << R"(",)";
os << R"("host":")" << cfg.host << R"(",)";
os << R"("port":")" << cfg.port << R"(",)";
os << R"("version":")" << cfg.version<< R"(")";
// Omitting task specific configuration parameters
os << R"("kind":")" << cfg.kind << R"(",)";
os << R"("protocol":")" << cfg.protocol << R"(",)";
os << R"("host":")" << cfg.host << R"(",)";
os << R"("port":")" << cfg.port << R"(",)";
os << R"("version":")" << cfg.version << R"(")";
// Omitting task specific configuration parameters
os << R"(})";
return os;
}
Expand Down Expand Up @@ -85,6 +86,10 @@ static std::string replace_env_var(const std::string& value) {
if (std::optional<Variable> variable = Environment::get_variable(name.c_str()); variable) {
return variable->variable_value;
}
else {
Log::warning() << Message("Environment variable '", name, "' not found. Replacement not possible...").str()
<< std::endl;
}
}
return value;
}
Expand Down
1 change: 1 addition & 0 deletions src/tools/ClientMain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <cstdlib>
#include <iostream>
#include <optional>
#include <thread>

#include "ecflow/light/Conversion.h"
Expand Down

0 comments on commit 94fabe3

Please sign in to comment.