Skip to content

Commit

Permalink
Merge pull request microsoft#4647 from crackedmind/fix_autocomplete
Browse files Browse the repository at this point in the history
[autocomplete] Add autocompletion for `vcpkg upgrade`
  • Loading branch information
alexkaratarakis authored Nov 4, 2018
2 parents 1c2c695 + 315ef42 commit 56ea0dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toolsrc/src/vcpkg/commands.autocomplete.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ namespace vcpkg::Commands::Autocomplete
"cache",
"version",
"contact",
"upgrade"
};

Util::unstable_keep_if(public_commands, [&](const std::string& s) {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 56ea0dc

Please sign in to comment.