mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 19:17:10 +01:00
[autocomplete] Add autocompletion for vcpkg upgrade
This commit is contained in:
parent
1c2c69529e
commit
315ef424f8
@ -56,6 +56,7 @@ namespace vcpkg::Commands::Autocomplete
|
|||||||
"cache",
|
"cache",
|
||||||
"version",
|
"version",
|
||||||
"contact",
|
"contact",
|
||||||
|
"upgrade"
|
||||||
};
|
};
|
||||||
|
|
||||||
Util::unstable_keep_if(public_commands, [&](const std::string& s) {
|
Util::unstable_keep_if(public_commands, [&](const std::string& s) {
|
||||||
@ -124,6 +125,7 @@ namespace vcpkg::Commands::Autocomplete
|
|||||||
CommandEntry{"edit", R"###(^edit\s(.*\s|)(\S*)$)###", Edit::COMMAND_STRUCTURE},
|
CommandEntry{"edit", R"###(^edit\s(.*\s|)(\S*)$)###", Edit::COMMAND_STRUCTURE},
|
||||||
CommandEntry{"remove", R"###(^remove\s(.*\s|)(\S*)$)###", Remove::COMMAND_STRUCTURE},
|
CommandEntry{"remove", R"###(^remove\s(.*\s|)(\S*)$)###", Remove::COMMAND_STRUCTURE},
|
||||||
CommandEntry{"integrate", R"###(^integrate(\s+)(\S*)$)###", Integrate::COMMAND_STRUCTURE},
|
CommandEntry{"integrate", R"###(^integrate(\s+)(\S*)$)###", Integrate::COMMAND_STRUCTURE},
|
||||||
|
CommandEntry{"upgrade", R"###(^upgrade(\s+)(\S*)$)###", Upgrade::COMMAND_STRUCTURE},
|
||||||
};
|
};
|
||||||
|
|
||||||
for (auto&& command : COMMANDS)
|
for (auto&& command : COMMANDS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user