diff options
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.hpp')
-rw-r--r-- | src/buildtool/serve_api/remote/serve_api.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.hpp b/src/buildtool/serve_api/remote/serve_api.hpp index c2ad5353..219fe7ab 100644 --- a/src/buildtool/serve_api/remote/serve_api.hpp +++ b/src/buildtool/serve_api/remote/serve_api.hpp @@ -65,6 +65,13 @@ class ServeApi final { return Instance().stc_->ServeDistdirTree(distfiles, sync_tree); } + [[nodiscard]] static auto RetrieveTreeFromForeignFile( + const std::string& content, + const std::string& name, + bool executable) noexcept -> std::variant<bool, std::string> { + return Instance().stc_->ServeForeignFileTree(content, name, executable); + } + [[nodiscard]] static auto ContentInRemoteCAS( std::string const& content) noexcept -> bool { return Instance().stc_->ServeContent(content); |