new: implement PULL command, add join functions

This commit is contained in:
ngn
2024-07-01 06:43:20 +03:00
parent 5513abb371
commit 3c603fef22
37 changed files with 791 additions and 338 deletions

View File

@ -21,14 +21,19 @@ int main(int argc, char *argv[]) {
goto end;
}
if (lm_ctx_pools_add(&ctx, "test", argv[1]) == NULL) {
if (lm_ctx_pool_add(&ctx, "base", argv[1]) == NULL) {
printf("failed to add pool: %s (%d)\n", lm_strerror(), lm_error());
goto end;
}
lm_ctx_pools_test(&ctx, NULL, NULL);
lm_ctx_pools_get_info(&ctx, true, NULL, NULL);
lm_ctx_pools_get_list(&ctx, true, NULL, NULL);
lm_ctx_pool_test(&ctx, NULL, NULL);
lm_ctx_pool_get_info(&ctx, true, true, NULL, NULL);
lm_ctx_pool_get_list(&ctx, true, true, NULL, NULL);
if (lm_ctx_package_get(&ctx, "which", NULL) == NULL) {
printf("failed to get the package: %s (%d)\n", lm_strerror(), lm_error());
goto end;
}
ret = EXIT_SUCCESS;