diff options
| author | dacctal <dacctal@symlinx.net> | 2026-05-24 10:23:38 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-05-24 10:23:38 +0000 |
| commit | aa0d78815004ae6b0c4a42b0e024f5c4ef555ae2 (patch) | |
| tree | 62f97b4c5acfdb98003568466f878fbd3d6b9dfb /src/list_pkgs.c | |
| parent | 83d471f2c1d1b1fa6be51f41e4f1c36ab19d7094 (diff) | |
c rewrite
Diffstat (limited to 'src/list_pkgs.c')
| -rw-r--r-- | src/list_pkgs.c | 12 |
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 |
