This commit is contained in:
Florent 2025-04-09 18:17:12 +02:00
parent 0060fd5af3
commit 4a8989a6b0
2 changed files with 6 additions and 2 deletions

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "meshcore-cli"
version = "0.3.4"
version = "0.3.5"
authors = [
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
]
@ -17,7 +17,7 @@ classifiers = [
]
license = "MIT"
license-files = ["LICEN[CS]E*"]
dependencies = [ "meshcore >= 0.3.2" ]
dependencies = [ "meshcore >= 0.4.1" ]
[project.urls]
Homepage = "https://github.com/fdlamotte/meshcore-cli"

View file

@ -110,6 +110,10 @@ async def next_cmd(mc, cmds):
await mc.ensure_contacts()
print(await mc.send_login(bytes.fromhex(mc.contacts[cmds[1]]["public_key"]),
cmds[2]))
case "logout" :
argnum = 1
await mc.ensure_contacts()
print(await mc.send_logout(bytes.fromhex(mc.contacts[cmds[1]]["public_key"])))
case "wait_login" | "wl" | "]]":
print(await mc.wait_login())
case "req_status" | "rs" :