eva-shell 0.2.25__tar.gz → 0.2.26__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.25 → eva-shell-0.2.26}/PKG-INFO +1 -1
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva4_shell/__init__.py +1 -1
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva4_shell/ap.py +16 -3
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva4_shell/cli.py +2 -2
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva_shell.egg-info/PKG-INFO +1 -1
- {eva-shell-0.2.25 → eva-shell-0.2.26}/setup.py +1 -1
- {eva-shell-0.2.25 → eva-shell-0.2.26}/LICENSE +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/README.md +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/bin/eva +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva4_shell/charts.py +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva4_shell/client.py +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva4_shell/compl.py +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva4_shell/sharedobj.py +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva4_shell/shell.py +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva4_shell/tools.py +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva_shell.egg-info/SOURCES.txt +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva_shell.egg-info/dependency_links.txt +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva_shell.egg-info/requires.txt +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/eva_shell.egg-info/top_level.txt +0 -0
- {eva-shell-0.2.25 → eva-shell-0.2.26}/setup.cfg +0 -0
|
@@ -263,8 +263,14 @@ def append_alarm_cli(root_sp):
|
|
|
263
263
|
p = sp.add_parser('state', help='alarm state')
|
|
264
264
|
p.add_argument('--node', metavar='NODE', help='filter by node')
|
|
265
265
|
p.add_argument('--group', metavar='GROUP', help='filter by group')
|
|
266
|
-
p.add_argument('--level-min',
|
|
267
|
-
|
|
266
|
+
p.add_argument('--level-min',
|
|
267
|
+
metavar='LEVEL_MIN',
|
|
268
|
+
type=int,
|
|
269
|
+
help='filter by min level')
|
|
270
|
+
p.add_argument('--level-max',
|
|
271
|
+
metavar='LEVEL_MAX',
|
|
272
|
+
type=int,
|
|
273
|
+
help='filter by max level')
|
|
268
274
|
p.add_argument('--id', metavar='ID', help='filter by ID')
|
|
269
275
|
p.add_argument('--current',
|
|
270
276
|
choices=ALARM_CURRENT_CODES,
|
|
@@ -813,7 +819,7 @@ def append_item_cli(root_sp):
|
|
|
813
819
|
p = sp.add_parser('edit', help='edit item config')
|
|
814
820
|
p.add_argument('i', metavar='OID').completer = ComplOID()
|
|
815
821
|
|
|
816
|
-
p = sp.add_parser('set', help='
|
|
822
|
+
p = sp.add_parser('set', help='set item state')
|
|
817
823
|
p.add_argument('i', metavar='OID').completer = ComplOID()
|
|
818
824
|
p.add_argument('value', metavar='VALUE')
|
|
819
825
|
p.add_argument('-s', '--status', metavar='STATUS', type=int)
|
|
@@ -822,6 +828,13 @@ def append_item_cli(root_sp):
|
|
|
822
828
|
dest='p',
|
|
823
829
|
metavar='TYPE',
|
|
824
830
|
choices=['auto', 'json'])
|
|
831
|
+
p.add_argument(
|
|
832
|
+
'-F',
|
|
833
|
+
'--force',
|
|
834
|
+
action='store_true',
|
|
835
|
+
help=
|
|
836
|
+
'Forcibly modify item state even if it is the same, also sets state for a disabled item'
|
|
837
|
+
)
|
|
825
838
|
|
|
826
839
|
sp.add_parser('summary', help='item summary per source')
|
|
827
840
|
|
|
@@ -1073,11 +1073,11 @@ class CLI:
|
|
|
1073
1073
|
print(f'{c} item(s) exported')
|
|
1074
1074
|
print()
|
|
1075
1075
|
|
|
1076
|
-
def item_set(self, i, status, value, p):
|
|
1076
|
+
def item_set(self, i, status, value, p, force):
|
|
1077
1077
|
val = format_value(value, p=p)
|
|
1078
1078
|
payload = dict(status=1 if status is None else status,
|
|
1079
1079
|
value=val,
|
|
1080
|
-
force=
|
|
1080
|
+
force=force)
|
|
1081
1081
|
connect()
|
|
1082
1082
|
common.bus.send(
|
|
1083
1083
|
'RAW/' + i.replace(':', '/', 1),
|
|
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
|