mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
logout
This commit is contained in:
parent
0060fd5af3
commit
4a8989a6b0
2 changed files with 6 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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" :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue