eva-shell 0.2.44__tar.gz → 0.2.46__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.
- {eva_shell-0.2.44 → eva_shell-0.2.46}/PKG-INFO +1 -1
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva4_shell/__init__.py +1 -1
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva4_shell/ap.py +6 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva4_shell/cli.py +19 -5
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva_shell.egg-info/PKG-INFO +1 -1
- {eva_shell-0.2.44 → eva_shell-0.2.46}/setup.py +1 -1
- {eva_shell-0.2.44 → eva_shell-0.2.46}/LICENSE +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/README.md +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/bin/eva +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva4_shell/charts.py +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva4_shell/client.py +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva4_shell/compl.py +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva4_shell/sharedobj.py +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva4_shell/shell.py +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva4_shell/tools.py +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva_shell.egg-info/SOURCES.txt +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva_shell.egg-info/dependency_links.txt +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva_shell.egg-info/requires.txt +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/eva_shell.egg-info/top_level.txt +0 -0
- {eva_shell-0.2.44 → eva_shell-0.2.46}/setup.cfg +0 -0
|
@@ -765,10 +765,16 @@ def append_item_cli(root_sp):
|
|
|
765
765
|
p = sp.add_parser('list', help='list items')
|
|
766
766
|
p.add_argument('i', metavar='MASK').completer = ComplOID()
|
|
767
767
|
p.add_argument('-n', metavar='NODE').completer = ComplNode()
|
|
768
|
+
p.add_argument('-x', '--regex', type=str, help='filter regular expression')
|
|
769
|
+
|
|
770
|
+
p = sp.add_parser('search', help='search items by OID regex (equal to list "#" with regex filter)')
|
|
771
|
+
p.add_argument('x', metavar='REGEX', type=str, help='OID regular expression')
|
|
772
|
+
p.add_argument('-n', metavar='NODE').completer = ComplNode()
|
|
768
773
|
|
|
769
774
|
p = sp.add_parser('state', help='item states')
|
|
770
775
|
p.add_argument('i', metavar='MASK').completer = ComplOID('state')
|
|
771
776
|
p.add_argument('-y', '--full', action='store_true')
|
|
777
|
+
p.add_argument('-x', '--regex', type=str, help='filter regular expression')
|
|
772
778
|
|
|
773
779
|
p = sp.add_parser('stream-info', help='item stream info')
|
|
774
780
|
p.add_argument('i', metavar='MASK').completer = ComplOID('state')
|
|
@@ -1060,10 +1060,10 @@ class CLI:
|
|
|
1060
1060
|
data = call_rpc('spoint.list')
|
|
1061
1061
|
print_result(data, cols=['name', 'source', 'port', 'version', 'build'])
|
|
1062
1062
|
|
|
1063
|
-
def item_list(self, i, n=None):
|
|
1063
|
+
def item_list(self, i, n=None, regex=None):
|
|
1064
1064
|
data = call_rpc(
|
|
1065
1065
|
'item.list',
|
|
1066
|
-
dict(i=i, node=n)
|
|
1066
|
+
dict(i=i, node=n, regex=regex)
|
|
1067
1067
|
)
|
|
1068
1068
|
print_result(data,
|
|
1069
1069
|
cols=[
|
|
@@ -1071,8 +1071,19 @@ class CLI:
|
|
|
1071
1071
|
't|n=set time|f=time', 'node', 'connected', 'enabled'
|
|
1072
1072
|
])
|
|
1073
1073
|
|
|
1074
|
-
def
|
|
1074
|
+
def item_search(self, x, n=None):
|
|
1075
1075
|
data = call_rpc(
|
|
1076
|
+
'item.list',
|
|
1077
|
+
dict(i="#", node=n, regex=x)
|
|
1078
|
+
)
|
|
1079
|
+
print_result(data,
|
|
1080
|
+
cols=[
|
|
1081
|
+
'oid', 'status', 'value|l=20|n=value',
|
|
1082
|
+
't|n=set time|f=time', 'node', 'connected', 'enabled'
|
|
1083
|
+
])
|
|
1084
|
+
|
|
1085
|
+
def item_announce(self, i, n=None):
|
|
1086
|
+
call_rpc(
|
|
1076
1087
|
'item.announce',
|
|
1077
1088
|
dict(i=i, node=n),
|
|
1078
1089
|
)
|
|
@@ -1179,10 +1190,13 @@ class CLI:
|
|
|
1179
1190
|
call_rpc('item.disable', dict(i=i))
|
|
1180
1191
|
ok()
|
|
1181
1192
|
|
|
1182
|
-
def item_state(self, i, full):
|
|
1193
|
+
def item_state(self, i, full, regex):
|
|
1194
|
+
params = dict(i=i, full=full)
|
|
1195
|
+
if regex is not None and regex != '':
|
|
1196
|
+
params['regex'] = regex
|
|
1183
1197
|
data = call_rpc(
|
|
1184
1198
|
'item.state',
|
|
1185
|
-
|
|
1199
|
+
params
|
|
1186
1200
|
)
|
|
1187
1201
|
print_result(data,
|
|
1188
1202
|
cols=[
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|