aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index abc3ffc..64cb537 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,5 +1,8 @@
#include "args.h"
#include "config.h"
+#include "repo.h"
+
+#include "stdio.h"
int main(int argc, char *argv[]) {
pow_args args = {0};
@@ -15,6 +18,11 @@ int main(int argc, char *argv[]) {
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, args.package);
+ }
+
pow_close_config(&config);
return 0;