aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorJacob Zhong <cmpute@qq.com>2018-03-18 20:24:19 +0800
committerRobert Schumacher <roschuma@microsoft.com>2018-03-18 05:24:19 -0700
commitd253123055e6bdfb181c6a8a14a63e2d6fc68cad (patch)
tree8ef0ae2c060a8f526ef816f487001746892f519a /toolsrc/include
parent55e2cccc19ad8a8f03ac9f27799babc7f15d9d92 (diff)
downloadvcpkg-d253123055e6bdfb181c6a8a14a63e2d6fc68cad.tar.gz
vcpkg-d253123055e6bdfb181c6a8a14a63e2d6fc68cad.zip
Add options and documentation for env command (#3007)
* [vcpkg] Add options and documentation for env command * [vcpkg-env] Cleanup. Add tools/*.
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/system.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg/base/system.h b/toolsrc/include/vcpkg/base/system.h
index 31034f6b4..b2faf69bb 100644
--- a/toolsrc/include/vcpkg/base/system.h
+++ b/toolsrc/include/vcpkg/base/system.h
@@ -1,5 +1,7 @@
#pragma once
+#include <unordered_map>
+
#include <vcpkg/base/files.h>
#include <vcpkg/base/optional.h>
#include <vcpkg/base/strings.h>
@@ -38,7 +40,8 @@ namespace vcpkg::System
std::string output;
};
- int cmd_execute_clean(const CStringView cmd_line);
+ int cmd_execute_clean(const CStringView cmd_line,
+ const std::unordered_map<std::string, std::string>& extra_env = {});
int cmd_execute(const CStringView cmd_line);