Skip to content

Commit 4a8989a

Browse files
committed
logout
1 parent 0060fd5 commit 4a8989a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "meshcore-cli"
7-
version = "0.3.4"
7+
version = "0.3.5"
88
authors = [
99
{ name="Florent de Lamotte", email="[email protected]" },
1010
]
@@ -17,7 +17,7 @@ classifiers = [
1717
]
1818
license = "MIT"
1919
license-files = ["LICEN[CS]E*"]
20-
dependencies = [ "meshcore >= 0.3.2" ]
20+
dependencies = [ "meshcore >= 0.4.1" ]
2121

2222
[project.urls]
2323
Homepage = "https://github.com/fdlamotte/meshcore-cli"

src/meshcore_cli/meshcore_cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ async def next_cmd(mc, cmds):
110110
await mc.ensure_contacts()
111111
print(await mc.send_login(bytes.fromhex(mc.contacts[cmds[1]]["public_key"]),
112112
cmds[2]))
113+
case "logout" :
114+
argnum = 1
115+
await mc.ensure_contacts()
116+
print(await mc.send_logout(bytes.fromhex(mc.contacts[cmds[1]]["public_key"])))
113117
case "wait_login" | "wl" | "]]":
114118
print(await mc.wait_login())
115119
case "req_status" | "rs" :

0 commit comments

Comments
 (0)