aboutsummaryrefslogtreecommitdiff
path: root/src/list_pkgs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/list_pkgs.c')
-rw-r--r--src/list_pkgs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/list_pkgs.c b/src/list_pkgs.c
new file mode 100644
index 0000000..5ac293a
--- /dev/null
+++ b/src/list_pkgs.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+#include "list_pkgs.h"
+#include "lua_state.h"
+
+void list_pkgs() {
+ init_lua_state();
+ cache_repos();
+ for (size_t i = 0; i < cached_repos_count; i++) {
+ printf("%s\n", cached_repos[i].source_key);
+ }
+} \ No newline at end of file