vcpkg/toolsrc/src/commands_env.cpp

19 lines
617 B
C++
Raw Normal View History

#include "pch.h"
2017-04-28 09:08:52 +08:00
#include "vcpkg_Commands.h"
#include "vcpkg_System.h"
namespace vcpkg::Commands::Env
{
2017-04-04 07:29:11 +08:00
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, const Triplet& default_triplet)
{
2017-04-04 06:02:45 +08:00
static const std::string example = Commands::Help::create_example_string(R"(env --Triplet x64-windows)");
args.check_exact_arg_count(0, example);
args.check_and_get_optional_command_arguments({});
System::cmd_execute_clean(Build::make_build_env_cmd(default_triplet, paths.get_toolset()) + L" && cmd");
Checks::exit_success(VCPKG_LINE_INFO);
}
}