diff options
| author | Maria Tavlaki <mariataylaki@hotmail.com> | 2017-10-01 22:17:33 +0300 |
|---|---|---|
| committer | Maria Tavlaki <mariataylaki@hotmail.com> | 2017-10-02 01:23:55 +0300 |
| commit | b3e06443eab560d5de848f2a066e1baa477fa57b (patch) | |
| tree | bd31e71390610e1fdcc03597f13dde248fee5bbe /toolsrc/src/commands_autocomplete.cpp | |
| parent | 2de9f83ff22774d0f70e3ee8158b26c494f5ea30 (diff) | |
| download | vcpkg-b3e06443eab560d5de848f2a066e1baa477fa57b.tar.gz vcpkg-b3e06443eab560d5de848f2a066e1baa477fa57b.zip | |
Create stub autocomplete function
Diffstat (limited to 'toolsrc/src/commands_autocomplete.cpp')
| -rw-r--r-- | toolsrc/src/commands_autocomplete.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/toolsrc/src/commands_autocomplete.cpp b/toolsrc/src/commands_autocomplete.cpp new file mode 100644 index 000000000..71154445d --- /dev/null +++ b/toolsrc/src/commands_autocomplete.cpp @@ -0,0 +1,22 @@ +#include "pch.h" + +#include "Paragraphs.h" +#include "SortedVector.h" +#include "vcpkg_Commands.h" +#include "vcpkg_Maps.h" +#include "vcpkg_System.h" + +namespace vcpkg::Commands::Autocomplete +{ + void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths) + { + static const std::string EXAMPLE = + Strings::format("The argument should be a command line to autocomplete.\n%s", + Commands::Help::create_example_string("autocomplete install z")); + + args.check_max_arg_count(1, EXAMPLE); + args.check_and_get_optional_command_arguments({}); + + Checks::exit_success(VCPKG_LINE_INFO); + } +} |
