This commit is contained in:
Florent de Lamotte 2025-03-25 15:47:47 +01:00
parent 733fc536c6
commit dcb4ddcee2
2 changed files with 5 additions and 2 deletions

View file

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

View file

@ -171,6 +171,9 @@ async def next_cmd(mc, cmds):
case "sleep" | "s" :
argnum = 1
await asyncio.sleep(int(cmds[1]))
case "cli" :
argnum = 1
print (await mc.send_cli(cmds[1]))
printerr (f"cmd {cmds[0:argnum+1]} processed ...")
return cmds[argnum+1:]