26 auto c = sp::Popen(
cmd_args, sp::input{sp::PIPE}, sp::output{sp::PIPE}, sp::error{sp::PIPE});
41 if (!
result_json.read(result))
throw std::runtime_error(
"Unable to parse JSON: " + result);
auto Join(const C &container, const S &separator, UnaryOp unary_op)
Join all container items.
UniValue RunCommandParseJSON(const std::vector< std::string > &cmd_args, const std::string &str_std_in)
Execute a command which returns JSON, and parse the result.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.