diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-08-14 07:37:03 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-08-14 07:37:03 +0000 |
| commit | 536b651f4086fe01d0bd1f743f54ef650524b122 (patch) | |
| tree | b63a9554ac3ca0d94dc2e9f7da583ad6ca0b358c /src/cli.c | |
| parent | 4fa342bcfdb5ebcbe65cabe1fb9ac3a46ea4ddca (diff) | |
i made the install work (kinda)
Diffstat (limited to 'src/cli.c')
| -rw-r--r-- | src/cli.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -26,6 +26,7 @@ #include "help.h" #include "log.h" #include "lua_state.h" +#include "pkg.h" #include "state.h" #include "str.h" @@ -67,6 +68,11 @@ void cmd_install(int argc, char **argv, int i) { if (argv[j][0] == '-') continue; str arg = mstr(argv[j]); + package_t pkg = pkg_create(&arg); + if (!pkg_install(&pkg)) { + log_error("failed to install"); + } + pkg_free(&pkg); if (str_is_valid(&arg)) str_free(&arg); } |
