mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-09-11 08:16:24 -04:00
Merge c72b234cae060f03fc723accc4c6361925faa6e5 into 1392c47cbbf519bd02ddafb5871526c16b7f2dd1
This commit is contained in:
commit
3014718815
@ -4,6 +4,10 @@ project(subprocess CXX)
|
|||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
|
||||||
|
# Options
|
||||||
|
option(BUILD_TESTING "Build tests" OFF)
|
||||||
|
|
||||||
|
# Tests
|
||||||
include(CTest)
|
include(CTest)
|
||||||
if(BUILD_TESTING)
|
if(BUILD_TESTING)
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
|
@ -22,7 +22,7 @@ and they will be fixed as they are reported.
|
|||||||
Subprocess library has just a single source `subprocess.hpp` present at the top directory of this repository. All you need to do is add
|
Subprocess library has just a single source `subprocess.hpp` present at the top directory of this repository. All you need to do is add
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
#inlcude "cpp-subprocess/subprocess.hpp"
|
#include "cpp-subprocess/subprocess.hpp"
|
||||||
|
|
||||||
using namespace subprocess;
|
using namespace subprocess;
|
||||||
// OR
|
// OR
|
||||||
|
@ -2050,6 +2050,11 @@ int call(const std::string& arg, Args&&... args)
|
|||||||
return (detail::call_impl(arg, std::forward<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.
|
* Run the command with arguments and wait for it to complete.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user