improve credentials output

This commit is contained in:
jem 2020-04-16 18:30:02 +02:00
parent 37ba2080c2
commit 8e194e53a2

View file

@ -19,7 +19,7 @@ def gopass_field_from_path (path, field):
credential = None
if path and field:
print('get credential for: ' + path)
print('get field for: ' + path + ', ' + field)
if sys.version_info.major == 3:
credential = check_output(['gopass', 'show', path, field], encoding='UTF-8')
else:
@ -31,7 +31,7 @@ def gopass_password_from_path (path):
credential = None
if path:
print('get credential for: ' + path)
print('get password for: ' + path)
if sys.version_info.major == 3:
credential = check_output(['gopass', 'show', '--password', path], encoding='UTF-8')
else: