From aa0d78815004ae6b0c4a42b0e024f5c4ef555ae2 Mon Sep 17 00:00:00 2001 From: dacctal Date: Sun, 24 May 2026 10:23:38 +0000 Subject: c rewrite --- src/list_pkgs.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/list_pkgs.c (limited to 'src/list_pkgs.c') 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 + +#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 -- cgit v1.2.3