should have tested

This commit is contained in:
Florent 2025-04-18 12:56:53 +02:00
parent 6a3ea32c95
commit 5f4d6f6276
2 changed files with 6 additions and 4 deletions

View file

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

View file

@ -552,7 +552,7 @@ async def next_cmd(mc, cmds, json_output=False):
print(f"Error while loging: {res}")
elif json_output :
res.payload["expected_ack"] = res.payload["expected_ack"].hex()
print(json.dumps(res.payload, indent=4))
print(json.dumps(res.payload))
case "logout" :
argnum = 1
@ -563,7 +563,9 @@ async def next_cmd(mc, cmds, json_output=False):
if res.type == EventType.ERROR:
print(f"Error while logout: {res}")
elif json_output :
print(json.dumps(res.payload, indent=4))
print(json.dumps(res.payload))
else:
print("Logout ok")
case "req_status" | "rs" :
argnum = 1
@ -984,7 +986,7 @@ async def main(argv):
logger.setLevel(logging.ERROR)
if len(args) == 0 : # no args, run in chat mode
await process_cmds(MC, "chat", json_output)
await process_cmds(MC, ["chat"], json_output)
else:
await process_cmds(MC, args, json_output)