diff options
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); } |
