From c100891f00f76696fa65c4885505c8058bf57022 Mon Sep 17 00:00:00 2001 From: Florent Date: Fri, 18 Apr 2025 13:50:17 +0200 Subject: [PATCH] fix cli --- pyproject.toml | 2 +- src/meshcore_cli/meshcore_cli.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 10dcc81..c34e511 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" }, ] diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index 21057ca..f632587 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -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