aboutsummaryrefslogtreecommitdiff
path: root/src/list_pkgs.c
blob: 5ac293af8ec1d3cb4d618a584582eb4438bb95a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
    }
}