Skip to content

Commit

Permalink
ykman: change command (#8)
Browse files Browse the repository at this point in the history
The interface of ykman has changed and the used command has been moved.
  • Loading branch information
Managarmrr authored Apr 14, 2023
1 parent 993ee1e commit 70ab7b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yubioath-krunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, options):
dbus.service.Object.__init__(self, dbus.service.BusName("me.odensc.yubioath", dbus.SessionBus()), objpath)

def get_credentials(self):
result = subprocess.run(["ykman", "oath", "list"], stdout=subprocess.PIPE)
result = subprocess.run(["ykman", "oath", "accounts", "list"], stdout=subprocess.PIPE)
return [
{
"id": cred,
Expand All @@ -33,7 +33,7 @@ def get_credentials(self):
]

def get_code(self, cred_id):
result = subprocess.run(["ykman", "oath", "code", cred_id], stdout=subprocess.PIPE)
result = subprocess.run(["ykman", "oath", "accounts", "code", cred_id], stdout=subprocess.PIPE)
code = result.stdout.decode()
return re.search(" (\d+)$", code).groups()[0]

Expand Down

0 comments on commit 70ab7b8

Please sign in to comment.