switch to JSON mode of cli

pass around logger
This commit is contained in:
Nico Angelo
2023-04-21 16:50:33 +02:00
parent 0f518ab28d
commit ad1cc9f646
5 changed files with 25 additions and 22 deletions

View File

@ -4,7 +4,7 @@ from utils.utils import get_secret_from_bitwarden, parse_fields_scope, parse_log
def bitwarden_lookup(id, scope, field):
_secret_json = json.loads(get_secret_from_bitwarden(id))
_secret_json = get_secret_from_bitwarden(None, id)
if scope == "login":
return parse_login_scope(_secret_json, field)
if scope == "fields":