diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-09-26 12:07:48 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-09-26 12:07:48 +0300 |
commit | 7d0d0e5f1570f06564e07f5e55b9bef9db517f8b (patch) | |
tree | e8007bd87a3cb264346cd0da5544bd1f8f0400ac /src/actions.c | |
parent | ba6ff53bebd1ea6c51f12ba5dd218dcce8348df1 (diff) | |
download | ck-7d0d0e5f1570f06564e07f5e55b9bef9db517f8b.tar.gz ck-7d0d0e5f1570f06564e07f5e55b9bef9db517f8b.tar.bz2 ck-7d0d0e5f1570f06564e07f5e55b9bef9db517f8b.zip |
list can now show attributes (secret, primary)
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/actions.c b/src/actions.c index efffc1b..b164779 100644 --- a/src/actions.c +++ b/src/actions.c @@ -133,8 +133,8 @@ int run_LIST(UserOpt *opt, Conf *conf) { } cklist *list_type = list_make_new(); - ListOpt listOpt = list_make_options(opt->args); + if (listOpt.err) { close_DB(&db); list_free(list_type); @@ -142,13 +142,13 @@ int run_LIST(UserOpt *opt, Conf *conf) { } switch(listOpt._lt) { case LT_PATH: - list_get_paths(&db, list_type); + list_get_paths(&db, list_type, listOpt.attr); break; case LT_PROGRAM: list_get_programs(&db, list_type); break; case LT_TREE: - list_get_path_program_tree(&db, list_type); + list_get_path_program_tree(&db, list_type, listOpt.attr); list_print(list_type); close_DB(&db); list_free(list_type); @@ -183,7 +183,7 @@ int run_SEARCH(UserOpt *opt, Conf *conf) { } DB db = open_DB(opt); cklist *paths = list_make_new(); - list_get_paths(&db, paths); + list_get_paths(&db, paths, 0); close_DB(&db); if (list_size(paths)) { do { |