blob: 19c0a8dc69e6f6ff60b9bc68e4840e26a3ecca82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "vcpkg_Commands.h"
#include "vcpkg_System.h"
#include "vcpkg.h"
namespace vcpkg
{
void owns_command(const vcpkg_cmd_arguments& args, const vcpkg_paths& paths)
{
args.check_max_args(1);
if (args.command_arguments.size() == 0)
{
System::println(System::color::error, "Error: owns requires a pattern to search for as the first argument.");
print_example("owns .dll");
exit(EXIT_FAILURE);
}
StatusParagraphs status_db = database_load_check(paths);
search_file(paths, args.command_arguments[0], status_db);
exit(EXIT_SUCCESS);
}
}
|