From b1ccb71a4bdbacd44843abfa9497576016962ed8 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 17 Mar 2025 14:31:58 +0100 Subject: execution_api: support reading off stdout/stderr digests --- src/buildtool/execution_api/common/execution_response.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/buildtool/execution_api/common/execution_response.hpp') diff --git a/src/buildtool/execution_api/common/execution_response.hpp b/src/buildtool/execution_api/common/execution_response.hpp index 9899584f..882750fe 100644 --- a/src/buildtool/execution_api/common/execution_response.hpp +++ b/src/buildtool/execution_api/common/execution_response.hpp @@ -17,12 +17,14 @@ #include #include +#include #include #include #include #include "gsl/gsl" #include "src/buildtool/common/artifact.hpp" +#include "src/buildtool/common/artifact_digest.hpp" #include "src/utils/cpp/expected.hpp" /// \brief Abstract response. @@ -54,6 +56,12 @@ class IExecutionResponse { [[nodiscard]] virtual auto HasStdOut() const noexcept -> bool = 0; + [[nodiscard]] virtual auto StdErrDigest() noexcept + -> std::optional = 0; + + [[nodiscard]] virtual auto StdOutDigest() noexcept + -> std::optional = 0; + [[nodiscard]] virtual auto StdErr() noexcept -> std::string = 0; [[nodiscard]] virtual auto StdOut() noexcept -> std::string = 0; -- cgit v1.2.3