NGPIris 5.2.2.dev5__py3-none-any.whl → 5.2.3.dev1__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.
- NGPIris/cli/__init__.py +10 -1
- {NGPIris-5.2.2.dev5.dist-info → NGPIris-5.2.3.dev1.dist-info}/METADATA +1 -1
- {NGPIris-5.2.2.dev5.dist-info → NGPIris-5.2.3.dev1.dist-info}/RECORD +7 -7
- {NGPIris-5.2.2.dev5.dist-info → NGPIris-5.2.3.dev1.dist-info}/LICENSE +0 -0
- {NGPIris-5.2.2.dev5.dist-info → NGPIris-5.2.3.dev1.dist-info}/WHEEL +0 -0
- {NGPIris-5.2.2.dev5.dist-info → NGPIris-5.2.3.dev1.dist-info}/entry_points.txt +0 -0
- {NGPIris-5.2.2.dev5.dist-info → NGPIris-5.2.3.dev1.dist-info}/top_level.txt +0 -0
NGPIris/cli/__init__.py
CHANGED
|
@@ -3,6 +3,7 @@ import click
|
|
|
3
3
|
from click.core import Context
|
|
4
4
|
from json import dump
|
|
5
5
|
from pathlib import Path
|
|
6
|
+
from boto3 import set_stream_logger
|
|
6
7
|
from botocore.paginate import PageIterator, Paginator
|
|
7
8
|
from typing import Any, Generator
|
|
8
9
|
from os import get_terminal_size
|
|
@@ -66,14 +67,22 @@ def add_trailing_slash(path : str) -> str:
|
|
|
66
67
|
|
|
67
68
|
@click.group()
|
|
68
69
|
@click.argument("credentials")
|
|
70
|
+
@click.option(
|
|
71
|
+
"--debug",
|
|
72
|
+
help = "Get the debug log for running a command",
|
|
73
|
+
is_flag = True
|
|
74
|
+
)
|
|
69
75
|
@click.version_option(package_name = "NGPIris")
|
|
70
76
|
@click.pass_context
|
|
71
|
-
def cli(context : Context, credentials : str):
|
|
77
|
+
def cli(context : Context, credentials : str, debug : bool):
|
|
72
78
|
"""
|
|
73
79
|
NGP Intelligence and Repository Interface Software, IRIS.
|
|
74
80
|
|
|
75
81
|
CREDENTIALS refers to the path to the JSON credentials file.
|
|
76
82
|
"""
|
|
83
|
+
if debug:
|
|
84
|
+
set_stream_logger(name="")
|
|
85
|
+
|
|
77
86
|
context.ensure_object(dict)
|
|
78
87
|
context.obj["hcph"] = HCPHandler(credentials)
|
|
79
88
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
NGPIris/__init__.py,sha256=eHaeRGl1JQ_hjsazEd4oQCXOkdpSxLIzg-ipYAAaa-s,69
|
|
2
|
-
NGPIris/cli/__init__.py,sha256=
|
|
2
|
+
NGPIris/cli/__init__.py,sha256=SWN5QwA5P_iVJpBrIdfuHD2cC6cv1G9S1eHHLPr8PLM,13291
|
|
3
3
|
NGPIris/hci/__init__.py,sha256=qZRzN2JZp8uIw46TQiqJHMIkleiVDErSoZ3-v0O_cZU,38
|
|
4
4
|
NGPIris/hci/exceptions.py,sha256=wUbpUwY8u1QtuSvnzlBuql9LgGsxBl207IGsHkCt-JQ,47
|
|
5
5
|
NGPIris/hci/hci.py,sha256=-7RBWPGqlINVNsl-GbjuXkcLdIF5cs4cu3OFt2FJi1E,4321
|
|
@@ -13,9 +13,9 @@ NGPIris/parse_credentials/__init__.py,sha256=O9uq_F9uOtuW7giW-t10KV4VmTgfkvgaBEw
|
|
|
13
13
|
NGPIris/parse_credentials/parse_credentials.py,sha256=E1NzQCMvjOa2mGLBkEYshZomNSxfSCkoc_iUhUfpBEM,2106
|
|
14
14
|
NGPIris/utils/__init__.py,sha256=yPCEc1-_7r01dZ-31EKiA7Jova7ztX7XXuU95IKmKX8,59
|
|
15
15
|
NGPIris/utils/utils.py,sha256=m9qwLuOoiqVNRy7B4raYNFJkigL_wE--PiWhyhVhHII,248
|
|
16
|
-
NGPIris-5.2.
|
|
17
|
-
NGPIris-5.2.
|
|
18
|
-
NGPIris-5.2.
|
|
19
|
-
NGPIris-5.2.
|
|
20
|
-
NGPIris-5.2.
|
|
21
|
-
NGPIris-5.2.
|
|
16
|
+
NGPIris-5.2.3.dev1.dist-info/LICENSE,sha256=ZA2Q9u5AEkH_YoNNDRsz-DBJ6ZuL_foE7RsKFjXd4-c,18093
|
|
17
|
+
NGPIris-5.2.3.dev1.dist-info/METADATA,sha256=43R-_Biox1gtmeyxReORAlT-lr7O48dTFCYp2K7u6co,7080
|
|
18
|
+
NGPIris-5.2.3.dev1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
19
|
+
NGPIris-5.2.3.dev1.dist-info/entry_points.txt,sha256=t8ADhe3ovPm9tW3XDZq1_vKmfHY98Ei_o6WioJobNzU,117
|
|
20
|
+
NGPIris-5.2.3.dev1.dist-info/top_level.txt,sha256=954WCuIJkle_SMtr7MNPapiiLLAFhlKbcz6Bp89-2V0,8
|
|
21
|
+
NGPIris-5.2.3.dev1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|