Added a 'call' convenience overload

This commit is contained in:
TheMarpe 2023-02-08 13:07:25 +02:00
parent 6786599ec1
commit c72b234cae

View File

@ -2050,6 +2050,11 @@ int call(const std::string& arg, Args&&... args)
return (detail::call_impl(arg, std::forward<Args>(args)...));
}
template <typename... Args>
int call(std::vector<std::string> plist, Args &&... args)
{
return (detail::call_impl(plist, std::forward<Args>(args)...));
}
/*!
* Run the command with arguments and wait for it to complete.