aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-04-22 05:47:33 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-04-22 05:47:33 +0300
commiteeca7f0151d85d563d1db229e3b7ca936323ffa2 (patch)
tree32e57172bd786daed9ac4251b3c5edf09c49d242 /src/actions.c
parent3560d8be4b833e888e8386a3dc641fa164b4b808 (diff)
downloadck-eeca7f0151d85d563d1db229e3b7ca936323ffa2.tar.gz
ck-eeca7f0151d85d563d1db229e3b7ca936323ffa2.tar.bz2
ck-eeca7f0151d85d563d1db229e3b7ca936323ffa2.zip
First steps towards adding to the db
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c
index 8941495..87c0a6c 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -42,6 +42,7 @@ int run_ADD(UserOpt * opt, Conf *conf) {
for (int i = 0; i < opt->argc; i++) {
printf("[%d]: %s\n", i, opt->argv[i]);
}
+ add_insert_program_to_db(&db, opt->argv[1]);
close_DB(&db);
return 0;
}