mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
command_type_x -> CommandTypeX
This commit is contained in:
parent
e051edfa10
commit
0621449f18
@ -8,9 +8,9 @@
|
||||
|
||||
namespace vcpkg::Commands
|
||||
{
|
||||
using command_type_a = void(*)(const VcpkgCmdArguments& args, const vcpkg_paths& paths, const Triplet& default_target_triplet);
|
||||
using command_type_b = void(*)(const VcpkgCmdArguments& args, const vcpkg_paths& paths);
|
||||
using command_type_c = void(*)(const VcpkgCmdArguments& args);
|
||||
using CommandTypeA = void(*)(const VcpkgCmdArguments& args, const vcpkg_paths& paths, const Triplet& default_target_triplet);
|
||||
using CommandTypeB = void(*)(const VcpkgCmdArguments& args, const vcpkg_paths& paths);
|
||||
using CommandTypeC = void(*)(const VcpkgCmdArguments& args);
|
||||
|
||||
namespace Build
|
||||
{
|
||||
@ -160,9 +160,9 @@ namespace vcpkg::Commands
|
||||
T function;
|
||||
};
|
||||
|
||||
const std::vector<package_name_and_function<command_type_a>>& get_available_commands_type_a();
|
||||
const std::vector<package_name_and_function<command_type_b>>& get_available_commands_type_b();
|
||||
const std::vector<package_name_and_function<command_type_c>>& get_available_commands_type_c();
|
||||
const std::vector<package_name_and_function<CommandTypeA>>& get_available_commands_type_a();
|
||||
const std::vector<package_name_and_function<CommandTypeB>>& get_available_commands_type_b();
|
||||
const std::vector<package_name_and_function<CommandTypeC>>& get_available_commands_type_c();
|
||||
|
||||
template <typename T>
|
||||
T find(const std::string& command_name, const std::vector<package_name_and_function<T>> available_commands)
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
namespace vcpkg::Commands
|
||||
{
|
||||
const std::vector<package_name_and_function<command_type_a>>& get_available_commands_type_a()
|
||||
const std::vector<package_name_and_function<CommandTypeA>>& get_available_commands_type_a()
|
||||
{
|
||||
static std::vector<package_name_and_function<command_type_a>> t = {
|
||||
static std::vector<package_name_and_function<CommandTypeA>> t = {
|
||||
{"install", &Install::perform_and_exit},
|
||||
{ "ci", &CI::perform_and_exit },
|
||||
{"remove", &Remove::perform_and_exit},
|
||||
@ -16,9 +16,9 @@ namespace vcpkg::Commands
|
||||
return t;
|
||||
}
|
||||
|
||||
const std::vector<package_name_and_function<command_type_b>>& get_available_commands_type_b()
|
||||
const std::vector<package_name_and_function<CommandTypeB>>& get_available_commands_type_b()
|
||||
{
|
||||
static std::vector<package_name_and_function<command_type_b>> t = {
|
||||
static std::vector<package_name_and_function<CommandTypeB>> t = {
|
||||
{"/?", &Help::perform_and_exit},
|
||||
{"help", &Help::perform_and_exit},
|
||||
{"search", &Search::perform_and_exit},
|
||||
@ -35,9 +35,9 @@ namespace vcpkg::Commands
|
||||
return t;
|
||||
}
|
||||
|
||||
const std::vector<package_name_and_function<command_type_c>>& get_available_commands_type_c()
|
||||
const std::vector<package_name_and_function<CommandTypeC>>& get_available_commands_type_c()
|
||||
{
|
||||
static std::vector<package_name_and_function<command_type_c>> t = {
|
||||
static std::vector<package_name_and_function<CommandTypeC>> t = {
|
||||
{"version", &Version::perform_and_exit},
|
||||
{"contact", &Contact::perform_and_exit},
|
||||
{"hash", &Hash::perform_and_exit},
|
||||
|
Loading…
x
Reference in New Issue
Block a user