aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-05-19 19:01:10 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2018-05-19 19:23:33 -0700
commit285c69b0faa220311f3ccc60febaa2e7c6d87bb1 (patch)
treee32f06e376706f0b1049e6c718f715ca2e1a9fd1 /toolsrc/include
parent6ccd43dfa7bedbfe9323e13085a476cca5d616d5 (diff)
downloadvcpkg-285c69b0faa220311f3ccc60febaa2e7c6d87bb1.tar.gz
vcpkg-285c69b0faa220311f3ccc60febaa2e7c6d87bb1.zip
[c++] Condense powershell helper code into the remaining single usage
`vcpkg integrate powershell` uses it
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/system.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/toolsrc/include/vcpkg/base/system.h b/toolsrc/include/vcpkg/base/system.h
index cf9c78868..813d600cd 100644
--- a/toolsrc/include/vcpkg/base/system.h
+++ b/toolsrc/include/vcpkg/base/system.h
@@ -25,15 +25,6 @@ namespace vcpkg::System
const fs::path& cmake_script,
const std::vector<CMakeVariable>& pass_variables);
- struct PowershellParameter
- {
- PowershellParameter(const CStringView varname, const char* varvalue);
- PowershellParameter(const CStringView varname, const std::string& varvalue);
- PowershellParameter(const CStringView varname, const fs::path& path);
-
- std::string s;
- };
-
struct ExitCodeAndOutput
{
int exit_code;
@@ -47,16 +38,6 @@ namespace vcpkg::System
ExitCodeAndOutput cmd_execute_and_capture_output(const CStringView cmd_line);
-#if defined(_WIN32)
- void powershell_execute(const std::string& title,
- const fs::path& script_path,
- const std::vector<PowershellParameter>& parameters = {});
-
- std::string powershell_execute_and_capture_output(const std::string& title,
- const fs::path& script_path,
- const std::vector<PowershellParameter>& parameters = {});
-#endif
-
enum class Color
{
success = 10,