#pragma once #include #include #include /** * @brief Asynchronously executes a shell command. * @param ctx Async context for monitoring the pipe. * @param cmd Shell command to execute. * @return Task resolving to true on success (exit code 0), false otherwise. */ sdbusplus::async::task asyncSystem( sdbusplus::async::context& ctx, const std::string& cmd, std::optional> result = std::nullopt);