Add -f option to find to show passwords
KeePass Command Line Interface
Brought to you by:
hightowe,
perlsaiyan
If the find function finds a single match it asks the user if they want to show the matched entry. Currently this feature is not really useful because there's no way to have it show the password of the entry. My suggestion would be to add a '-f' option to find, that if present, results in the passwords been shown.
I added a partial version of this feature to my local copy by just having -f always enabled when doing find:
--- kpcli 2019-07-04 07:49:26.273048000 +1000
+++ /usr/bin/kpcli 2016-08-21 22:57:45.000000000 +1000
@@ -1527,8 +1527,6 @@
my ($e,@empty) = $k->find_entries($search_params);
my $full_path="/$FOUND_DIR/" . $e->{title};
my $show_args = [ $full_path ];
- # show the password by default
- push @{$show_args}, '-f';
# If we are doing an expired password search, find only one entry,
# and give the user the option to show it, we want to show the
# expired time, and so we add -a here.
Thanks for the suggestion, and especially for the patch that demonstrates how you fixed this for yourself, but I don't think that this is a general purpose feature that I want to add at this time.