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
|
|
@ -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:]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue