blob: 67ba1537a95bc099641030a3cfd2b81caf450a52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "args.h"
#include "config.h"
#include "repo.h"
#include "stdio.h"
int main(int argc, char *argv[]) {
pow_args args = {0};
pow_args_parse(argc, argv, &args);
if (args.flags & POW_FLAG_HELP) {
pow_args_print_help();
return 0;
}
pow_config config = {0};
pow_open_config(&config, args.cfg_path);
if (args.flags & POW_FLAG_QUERY) {
repo_check_package(config.repos, config.repos_count, "samurai");
}
pow_close_config(&config);
fflush(stdout);
return 0;
}
|