Merge pull request #4647 from crackedmind/fix_autocomplete

[autocomplete] Add autocompletion for `vcpkg upgrade`
This commit is contained in:
Alexander Karatarakis 2018-11-03 19:24:50 -07:00 committed by GitHub
commit 56ea0dca40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,7 @@ namespace vcpkg::Commands::Autocomplete
"cache",
"version",
"contact",
"upgrade"
};
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{"remove", R"###(^remove\s(.*\s|)(\S*)$)###", Remove::COMMAND_STRUCTURE},
CommandEntry{"integrate", R"###(^integrate(\s+)(\S*)$)###", Integrate::COMMAND_STRUCTURE},
CommandEntry{"upgrade", R"###(^upgrade(\s+)(\S*)$)###", Upgrade::COMMAND_STRUCTURE},
};
for (auto&& command : COMMANDS)