mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
cmd_cli
This commit is contained in:
parent
733fc536c6
commit
dcb4ddcee2
2 changed files with 5 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "meshcore-cli"
|
name = "meshcore-cli"
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
|
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
|
||||||
]
|
]
|
||||||
|
|
@ -17,7 +17,7 @@ classifiers = [
|
||||||
]
|
]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
license-files = ["LICEN[CS]E*"]
|
license-files = ["LICEN[CS]E*"]
|
||||||
dependencies = [ "meshcore" ]
|
dependencies = [ "meshcore>=0.3.2" ]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://github.com/fdlamotte/meshcore-cli"
|
Homepage = "https://github.com/fdlamotte/meshcore-cli"
|
||||||
|
|
|
||||||
|
|
@ -171,6 +171,9 @@ async def next_cmd(mc, cmds):
|
||||||
case "sleep" | "s" :
|
case "sleep" | "s" :
|
||||||
argnum = 1
|
argnum = 1
|
||||||
await asyncio.sleep(int(cmds[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 ...")
|
printerr (f"cmd {cmds[0:argnum+1]} processed ...")
|
||||||
return cmds[argnum+1:]
|
return cmds[argnum+1:]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue