10inline std::vector<uint8_t>
gunzip(
const std::string& path)
12 std::string command =
"gunzip -c \"" + path +
"\"";
16inline std::vector<uint8_t>
get_bytecode(
const std::string& bytecodePath)
18 if (bytecodePath ==
"-") {
21 std::filesystem::path filePath = bytecodePath;
22 if (filePath.extension() ==
".json") {
24 std::string command =
"jq -r '.bytecode' \"" + bytecodePath +
"\" | base64 -d | gunzip -c";
29 return gunzip(bytecodePath);
std::vector< uint8_t > get_bytecode(const std::string &bytecodePath)
std::vector< uint8_t > gunzip(const std::string &path)
std::vector< uint8_t > exec_pipe(const std::string &command)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept