This commit is contained in:
Florent 2025-04-18 13:50:17 +02:00
parent 5dabe7adf1
commit c100891f00
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "meshcore-cli"
version = "0.5.14"
version = "0.5.15"
authors = [
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
]

View file

@ -154,7 +154,7 @@ Line starting with \"$\" or \".\" will issue a meshcli command.
await process_cmds(mc, args)
# commands that take one parameter (don't need for quotes)
elif line.startswith("public "):
elif line.startswith("public ") or line.startswith("cli ") :
cmds = line.split(" ", 1)
args = [cmds[0], cmds[1]]
await process_cmds(mc, args)
@ -168,7 +168,7 @@ Line starting with \"$\" or \".\" will issue a meshcli command.
await process_cmds(mc, args)
# same but for commands with a parameter
elif line.startswith("cmd ") or line.startswith("cli ") or\
elif line.startswith("cmd ") or\
line.startswith("cp ") or line.startswith("change_path ") :
cmds = line.split(" ", 1)
args = [cmds[0], contact['adv_name'], cmds[1]]
@ -192,7 +192,7 @@ Line starting with \"$\" or \".\" will issue a meshcli command.
await process_cmds(mc, args)
elif line.startswith("@") : # send a cli command that won't need quotes !
args=["cli", contact['adv_name'], line[1:]]
args=["cli", line[1:]]
await process_cmds(mc, args)
elif line.startswith("to ") : # dest