From 6a386ee203c609894dc6e6e97bf6d5c651ab3e37 Mon Sep 17 00:00:00 2001 From: dacctal Date: Sat, 4 Jul 2026 05:27:09 +0000 Subject: lua checkpoint! --- src/main.c | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 403355a..441332f 100644 --- a/src/main.c +++ b/src/main.c @@ -18,27 +18,30 @@ */ -// #include "cla_parse.h" -#include "pkg.h" +#include "parse_args.h" #include "globs.h" -#include "str.h" +//#include "pkg.h" +//#include "str.h" +//#include "debug.h" int main(int argc, char **argv) { - (void)argc; init_vars(); - package_t pkg = pkg_create(mstrslc(argv[1])); - printf("NAME:\t"); - str_println(&pkg.name); - printf("URL:\t"); - str_println(&pkg.url); - printf("VER:\t"); - str_println(&pkg.version); - printf("TRG:\t"); - str_println(&pkg.target); - printf("SRC:\t"); - str_println(&pkg.src); - pkg_free(&pkg); - //cla_parse(argc, argv); + parse_args(argc, argv); + + //package_t pkg = pkg_create(mstrslc(argv[1])); + //printf("NAME:\t"); + //str_println(&pkg.name); + //printf("URL:\t"); + //str_println(&pkg.url); + //printf("VER:\t"); + //str_println(&pkg.version); + //printf("TRG:\t"); + //str_println(&pkg.target); + //printf("SRC:\t"); + //str_println(&pkg.src); + //pkg_free(&pkg); + + //debug_print_inst_dirs(); free_vars(); return 0; } -- cgit v1.2.3