meshcore-cli 1.1.36__py3-none-any.whl → 1.1.37__py3-none-any.whl
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.
- meshcore_cli/meshcore_cli.py +12 -4
- {meshcore_cli-1.1.36.dist-info → meshcore_cli-1.1.37.dist-info}/METADATA +1 -1
- meshcore_cli-1.1.37.dist-info/RECORD +8 -0
- meshcore_cli-1.1.36.dist-info/RECORD +0 -8
- {meshcore_cli-1.1.36.dist-info → meshcore_cli-1.1.37.dist-info}/WHEEL +0 -0
- {meshcore_cli-1.1.36.dist-info → meshcore_cli-1.1.37.dist-info}/entry_points.txt +0 -0
- {meshcore_cli-1.1.36.dist-info → meshcore_cli-1.1.37.dist-info}/licenses/LICENSE +0 -0
meshcore_cli/meshcore_cli.py
CHANGED
|
@@ -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.
|
|
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
|
|
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
|
|
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 """
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshcore-cli
|
|
3
|
-
Version: 1.1.
|
|
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
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
meshcore_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
meshcore_cli/__main__.py,sha256=PfYgibmu2LEtC-OV7L1UgmvV3swJ5rQ4bbXHlwUFlgE,83
|
|
3
|
+
meshcore_cli/meshcore_cli.py,sha256=5ydfiMoDCL5kKV2X8j3Sm-8qthjTMtLQjMswk8ZmXyU,112748
|
|
4
|
+
meshcore_cli-1.1.37.dist-info/METADATA,sha256=gLPMzBo0_pHHZPr5IQQL4xpkGl28nJIhxQmO6vvB8II,11630
|
|
5
|
+
meshcore_cli-1.1.37.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
+
meshcore_cli-1.1.37.dist-info/entry_points.txt,sha256=77V29Pyth11GteDk7tneBN3MMk8JI7bTlS-BGSmxCmI,103
|
|
7
|
+
meshcore_cli-1.1.37.dist-info/licenses/LICENSE,sha256=F9s987VtS0AKxW7LdB2EkLMkrdeERI7ICdLJR60A9M4,1066
|
|
8
|
+
meshcore_cli-1.1.37.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
meshcore_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
meshcore_cli/__main__.py,sha256=PfYgibmu2LEtC-OV7L1UgmvV3swJ5rQ4bbXHlwUFlgE,83
|
|
3
|
-
meshcore_cli/meshcore_cli.py,sha256=ptCcnezjVouTz1Irp7ptnNABB3DrsAA1fiqRx_-O1hU,112472
|
|
4
|
-
meshcore_cli-1.1.36.dist-info/METADATA,sha256=ZqOmWqxcXTHj-KsLPn0b2yyDJsJVfi_1_CzMw_AEFBE,11630
|
|
5
|
-
meshcore_cli-1.1.36.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
-
meshcore_cli-1.1.36.dist-info/entry_points.txt,sha256=77V29Pyth11GteDk7tneBN3MMk8JI7bTlS-BGSmxCmI,103
|
|
7
|
-
meshcore_cli-1.1.36.dist-info/licenses/LICENSE,sha256=F9s987VtS0AKxW7LdB2EkLMkrdeERI7ICdLJR60A9M4,1066
|
|
8
|
-
meshcore_cli-1.1.36.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|