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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eva-shell
3
- Version: 0.2.25
3
+ Version: 0.2.26
4
4
  Summary: EVA ICS v4 shell
5
5
  Home-page: https://github.com/eva-ics/eva4
6
6
  Author: Bohemia Automation / Altertech
@@ -1,3 +1,3 @@
1
- __version__ = '0.2.25'
1
+ __version__ = '0.2.26'
2
2
 
3
3
  DEFAULT_REPOSITORY_URL = 'https://pub.bma.ai/eva4'
@@ -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', metavar='LEVEL_MIN', type=int, help='filter by min level')
267
- p.add_argument('--level-max', metavar='LEVEL_MAX', type=int, help='filter by max level')
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='forcibly set item state')
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=True)
1080
+ force=force)
1081
1081
  connect()
1082
1082
  common.bus.send(
1083
1083
  'RAW/' + i.replace(':', '/', 1),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eva-shell
3
- Version: 0.2.25
3
+ Version: 0.2.26
4
4
  Summary: EVA ICS v4 shell
5
5
  Home-page: https://github.com/eva-ics/eva4
6
6
  Author: Bohemia Automation / Altertech
@@ -1,4 +1,4 @@
1
- __version__ = '0.2.25'
1
+ __version__ = '0.2.26'
2
2
 
3
3
  import setuptools
4
4
 
File without changes
File without changes
File without changes
File without changes