hcs-cli 0.1.315__py3-none-any.whl → 0.1.316__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.
hcs_cli/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
- __version__ = "0.1.315"
1
+ __version__ = "0.1.316"
2
2
 
3
3
  from . import service
@@ -2,7 +2,7 @@ import json
2
2
  import os
3
3
  import shlex
4
4
  import subprocess
5
- from typing import List, Tuple, Union
5
+ from typing import Any, List, Tuple, Union
6
6
 
7
7
  import click
8
8
 
@@ -18,7 +18,14 @@ def _split_command(cmd: Union[str, List[str]]) -> Tuple[List[str], str]:
18
18
 
19
19
 
20
20
  def exec(
21
- cmd, log_error=True, raise_on_error=True, inherit_output=False, cwd=None, input: str = None, show_command: bool = True, env: dict = None
21
+ cmd,
22
+ log_error=True,
23
+ raise_on_error=True,
24
+ inherit_output=False,
25
+ cwd=None,
26
+ input: Union[str, dict[Any, Any], list[Any]] = None,
27
+ show_command: bool = True,
28
+ env: dict = None,
22
29
  ):
23
30
  commands, cmd_text = _split_command(cmd)
24
31
  text = f"RUNNING: {cmd_text}"
@@ -55,7 +62,7 @@ def run_cli(
55
62
  output_json=False,
56
63
  raise_on_error=True,
57
64
  inherit_output: Union[bool, None] = None,
58
- input: str = None,
65
+ input: Union[str, dict[Any, Any], list[Any]] = None,
59
66
  show_command: bool = True,
60
67
  log_error: bool = True,
61
68
  env: dict = None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hcs-cli
3
- Version: 0.1.315
3
+ Version: 0.1.316
4
4
  Summary: Horizon Cloud Service CLI.
5
5
  Project-URL: Homepage, https://github.com/euc-eng/hcs-cli
6
6
  Project-URL: Bug Tracker, https://github.com/euc-eng/hcs-cli/issues
@@ -14,7 +14,7 @@ Classifier: License :: OSI Approved :: MIT License
14
14
  Classifier: Operating System :: OS Independent
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Requires-Python: >=3.9
17
- Requires-Dist: hcs-core>=0.1.315
17
+ Requires-Dist: hcs-core>=0.1.316
18
18
  Requires-Dist: inquirerpy>=0.3.4
19
19
  Requires-Dist: matplotlib>=3.8.0
20
20
  Requires-Dist: paho-mqtt>=2.1.0
@@ -1,4 +1,4 @@
1
- hcs_cli/__init__.py,sha256=HpPkz1OWTqjWkMsif4IOB2b2XgE5McDpbjoGJhgMpFs,47
1
+ hcs_cli/__init__.py,sha256=P2--9sVWZlTvDHld4eRAc9YwG3V4ezVuQpADddD2_fE,47
2
2
  hcs_cli/__main__.py,sha256=lwPXLjh1OpOs4doVLJJ6_3XHtC-VqDOXiw45hvAQorM,684
3
3
  hcs_cli/main.py,sha256=87MoOqaYQ1V7m9LJbek3GR_RojErr4j6watZD8oenk0,3539
4
4
  hcs_cli/cmds/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -475,7 +475,7 @@ hcs_cli/service/vmm/hoc_event.py,sha256=ukkfojIT6MwPxglKMGF8S3-Moa_K7hcRM3WrkrjA
475
475
  hcs_cli/support/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
476
476
  hcs_cli/support/constant.py,sha256=dVOiIaiH4rhC-cZJhTruXyv5ieS1j32YUhF8wEFjbEw,171
477
477
  hcs_cli/support/debug_util.py,sha256=Bb0gaYN8bSljXdFNnX3mElWWkL_lHP9lFEMP71LsIi0,2679
478
- hcs_cli/support/exec_util.py,sha256=PizPjM_DMyzoRDQCFOL1nyw-HNCTwicZ0mt2Qnv4Pb4,2996
478
+ hcs_cli/support/exec_util.py,sha256=Epa09iCouAky7NE17O5rG-q3vdw35XJzrIUitPStSsY,3098
479
479
  hcs_cli/support/inspect_util.py,sha256=weLylRM1_3O6nz0yUOiJUEBfR9TpUe-jpghmrQblSjE,3192
480
480
  hcs_cli/support/param_util.py,sha256=CHXWJvBF9EwFLYPn_CTOpFWdSyCP3w6iLlYByiz-nvE,1492
481
481
  hcs_cli/support/patch_util.py,sha256=r4IjpLA5yGqKer-wuSMB7d93BGPVnse_FhHcAxwYg7A,1524
@@ -489,7 +489,7 @@ hcs_cli/support/vm_table.py,sha256=aNyFtrQb2Cy4JBZx3sPt3_GpOHD7R6x4nITlwc9dZ4Q,2
489
489
  hcs_cli/support/scm/html_util.py,sha256=clgMpM90HxRRs3D9ORYYNB57AYh7y_-UzJrB4KX3dsY,458
490
490
  hcs_cli/support/scm/plan-editor.html.template,sha256=qXhHYjBsG8uaVlMkc0gnCePoSV3w5NyTkaLhXV9jlC0,26874
491
491
  hcs_cli/support/scm/plan_editor.py,sha256=pZtm9X_R-vs2JxJ_NX7-wTAoY-nhI-gFqhcyVDdEZVM,3108
492
- hcs_cli-0.1.315.dist-info/METADATA,sha256=M8ZNfiffa60yHr-KqnBStXM32oCsFmNMk7EXqAN2rGU,3568
493
- hcs_cli-0.1.315.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
494
- hcs_cli-0.1.315.dist-info/entry_points.txt,sha256=5uH-af1WUETSBSer2bu4YMGQNY5RriJHsjepb8ACiX8,42
495
- hcs_cli-0.1.315.dist-info/RECORD,,
492
+ hcs_cli-0.1.316.dist-info/METADATA,sha256=yy6WexekCm3w0Q58im_2-xQbfV9NIqne8XSCK3TN6TU,3568
493
+ hcs_cli-0.1.316.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
494
+ hcs_cli-0.1.316.dist-info/entry_points.txt,sha256=5uH-af1WUETSBSer2bu4YMGQNY5RriJHsjepb8ACiX8,42
495
+ hcs_cli-0.1.316.dist-info/RECORD,,