meshcore-cli 1.1.36__tar.gz → 1.1.37__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshcore-cli
3
- Version: 1.1.36
3
+ Version: 1.1.37
4
4
  Summary: Command line interface to meshcore companion radios
5
5
  Project-URL: Homepage, https://github.com/fdlamotte/meshcore-cli
6
6
  Project-URL: Issues, https://github.com/fdlamotte/meshcore-cli/issues
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "meshcore-cli"
7
- version = "1.1.36"
7
+ version = "1.1.37"
8
8
  authors = [
9
9
  { name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
10
10
  ]
@@ -23,7 +23,7 @@ from prompt_toolkit.shortcuts import radiolist_dialog
23
23
  from meshcore import MeshCore, EventType, logger
24
24
 
25
25
  # Version
26
- VERSION = "v1.1.36"
26
+ VERSION = "v1.1.37"
27
27
 
28
28
  # default ble address is stored in a config file
29
29
  MCCLI_CONFIG_DIR = str(Path.home()) + "/.config/meshcore/"
@@ -69,7 +69,7 @@ def escape_ansi(line):
69
69
  ansi_escape = re.compile(r'(?:\x1B[@-_]|[\x80-\x9F])[0-?]*[ -/]*[@-~]')
70
70
  return ansi_escape.sub('', line)
71
71
 
72
- def print_above(str):
72
+ def print_one_line_above(str):
73
73
  """ prints a string above current line """
74
74
  width = os.get_terminal_size().columns
75
75
  stringlen = len(escape_ansi(str))-1
@@ -85,6 +85,11 @@ def print_above(str):
85
85
  print(str, end="") # Print output status msg
86
86
  print("\u001B[u", end="", flush=True) # Jump back to saved cursor position
87
87
 
88
+ def print_above(str):
89
+ lines = str.split('\n')
90
+ for l in lines:
91
+ print_one_line_above(l)
92
+
88
93
  async def process_event_message(mc, ev, json_output, end="\n", above=False):
89
94
  """ display incoming message """
90
95
  if ev is None :
@@ -350,6 +355,7 @@ def make_completion_dict(contacts, pending={}, to=None, channels=None):
350
355
  "share_contact" : contact_list,
351
356
  "path": contact_list,
352
357
  "disc_path" : contact_list,
358
+ "trace" : None,
353
359
  "reset_path" : contact_list,
354
360
  "change_path" : contact_list,
355
361
  "change_flags" : contact_list,
@@ -2399,6 +2405,7 @@ def command_help():
2399
2405
  import_contact <URI> : import a contact from its URI ic
2400
2406
  remove_contact <ct> : removes a contact from this node
2401
2407
  path <ct> : diplays path for a contact
2408
+ disc_path <ct> : discover new path and display dp
2402
2409
  reset_path <ct> : resets path to a contact to flood rp
2403
2410
  change_path <ct> <pth> : change the path to a contact cp
2404
2411
  change_flags <ct> <f> : change contact flags (tel_l|tel_a|star)cf
@@ -2407,13 +2414,14 @@ def command_help():
2407
2414
  req_acl <ct> : requests access control list for sensor
2408
2415
  pending_contacts : show pending contacts
2409
2416
  add_pending <key> : manually add pending contact from key
2410
- flush_pending : flush pending contact clist
2417
+ flush_pending : flush pending contact list
2411
2418
  Repeaters
2412
2419
  login <name> <pwd> : log into a node (rep) with given pwd l
2413
2420
  logout <name> : log out of a repeater
2414
2421
  cmd <name> <cmd> : sends a command to a repeater (no ack) c [
2415
2422
  wmt8 : wait for a msg (reply) with a timeout ]
2416
- req_status <name> : requests status from a node rs""")
2423
+ req_status <name> : requests status from a node rs
2424
+ trace <path> : run a trace, path is comma separated""")
2417
2425
 
2418
2426
  def usage () :
2419
2427
  """ Prints some help """
File without changes
File without changes
File without changes
File without changes
File without changes