Skip to content

Commit dcb4ddc

Browse files
committed
cmd_cli
1 parent 733fc53 commit dcb4ddc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-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.1"
7+
version = "0.3.2"
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" ]
20+
dependencies = [ "meshcore>=0.3.2" ]
2121

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

src/meshcore_cli/meshcore_cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ async def next_cmd(mc, cmds):
171171
case "sleep" | "s" :
172172
argnum = 1
173173
await asyncio.sleep(int(cmds[1]))
174+
case "cli" :
175+
argnum = 1
176+
print (await mc.send_cli(cmds[1]))
174177

175178
printerr (f"cmd {cmds[0:argnum+1]} processed ...")
176179
return cmds[argnum+1:]

0 commit comments

Comments
 (0)