amsdal_cli 0.5.1__py3-none-any.whl → 0.5.2__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.
- amsdal_cli/__about__.py +1 -1
- amsdal_cli/commands/callbacks.py +13 -0
- amsdal_cli/commands/cloud/dependency/sub_commands/dependency_delete.py +0 -2
- amsdal_cli/commands/restore/command.py +1 -1
- {amsdal_cli-0.5.1.dist-info → amsdal_cli-0.5.2.dist-info}/METADATA +1 -1
- {amsdal_cli-0.5.1.dist-info → amsdal_cli-0.5.2.dist-info}/RECORD +9 -9
- {amsdal_cli-0.5.1.dist-info → amsdal_cli-0.5.2.dist-info}/WHEEL +0 -0
- {amsdal_cli-0.5.1.dist-info → amsdal_cli-0.5.2.dist-info}/entry_points.txt +0 -0
- {amsdal_cli-0.5.1.dist-info → amsdal_cli-0.5.2.dist-info}/licenses/LICENSE.txt +0 -0
amsdal_cli/__about__.py
CHANGED
amsdal_cli/commands/callbacks.py
CHANGED
|
@@ -4,6 +4,7 @@ from json import JSONDecodeError
|
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
|
|
6
6
|
import typer
|
|
7
|
+
from amsdal_utils.config.manager import AmsdalConfigManager
|
|
7
8
|
from rich import print as rprint
|
|
8
9
|
from typer import Option
|
|
9
10
|
|
|
@@ -90,6 +91,18 @@ def init_app_context(
|
|
|
90
91
|
|
|
91
92
|
config = ctx.meta['config']
|
|
92
93
|
|
|
94
|
+
try:
|
|
95
|
+
amsdal_config = AmsdalConfigManager().get_config()
|
|
96
|
+
except Exception:
|
|
97
|
+
AmsdalConfigManager().load_config(Path('./config.yml'))
|
|
98
|
+
|
|
99
|
+
amsdal_config = AmsdalConfigManager().get_config()
|
|
100
|
+
|
|
101
|
+
if not amsdal_config.config_dir:
|
|
102
|
+
config_dir: Path = config.app_directory / '.amsdal'
|
|
103
|
+
config_dir.mkdir(exist_ok=True, parents=True)
|
|
104
|
+
amsdal_config.config_dir = config_dir
|
|
105
|
+
|
|
93
106
|
if settings.AMSDAL_APPLICATION_UUID:
|
|
94
107
|
config.application_uuid = settings.AMSDAL_APPLICATION_UUID
|
|
95
108
|
|
|
@@ -648,7 +648,7 @@ def _build_pks(
|
|
|
648
648
|
else:
|
|
649
649
|
from amsdal_data.utils import object_schema_type_to_glue_type
|
|
650
650
|
|
|
651
|
-
pks[field] = object_schema_type_to_glue_type(prop['type'])
|
|
651
|
+
pks[field] = object_schema_type_to_glue_type(prop['type']) # type: ignore[assignment]
|
|
652
652
|
|
|
653
653
|
return pks
|
|
654
654
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
amsdal_cli/Third-Party Materials - AMSDAL Dependencies - License Notices.md,sha256=uHJlGG0D4tbpUi8cq-497NNO9ltQ67a5448k-T14HTw,68241
|
|
2
|
-
amsdal_cli/__about__.py,sha256=
|
|
2
|
+
amsdal_cli/__about__.py,sha256=glsk81MrslMVQFReYet26elGhdxBZYmME4LF8nyLdxA,124
|
|
3
3
|
amsdal_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
amsdal_cli/app.py,sha256=_ucuLT5ospf1ifFKEG0IMfVnxKjnvPUQ4iMhkvOfCrc,466
|
|
5
5
|
amsdal_cli/main.py,sha256=LtH-BD1eJrAUecjKzC8Gx7kYFUstOMH1erdeJUVqFB8,144
|
|
6
6
|
amsdal_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
amsdal_cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
amsdal_cli/commands/callbacks.py,sha256=
|
|
8
|
+
amsdal_cli/commands/callbacks.py,sha256=MtvIBfz4VzLZTwR0oIdEf1nRAMWkc8h8u3-Qaie9-dM,4160
|
|
9
9
|
amsdal_cli/commands/build/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
amsdal_cli/commands/build/command.py,sha256=1-Thx2Iz-xr9UDulTiBRZYValCdWhg-SgUAnF370N1o,742
|
|
11
11
|
amsdal_cli/commands/build/constants.py,sha256=an5hbofZrKzyFfxTCu4VSmNQGtAMRSrDj1_TnncyZOw,42
|
|
@@ -49,7 +49,7 @@ amsdal_cli/commands/cloud/dependency/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeu
|
|
|
49
49
|
amsdal_cli/commands/cloud/dependency/app.py,sha256=m2pcB5z3257uU7pKt9XoOdQn7J3PUys6elCs9c9qc2o,230
|
|
50
50
|
amsdal_cli/commands/cloud/dependency/command.py,sha256=6nri04NBl4fy4FlrZyorY05samMbYU1-2j88m4t2FD4,272
|
|
51
51
|
amsdal_cli/commands/cloud/dependency/sub_commands/__init__.py,sha256=ZH89xFzDRJmV2e7MdCVDgaZ30B7jxRVUKTNzHAgTFeE,419
|
|
52
|
-
amsdal_cli/commands/cloud/dependency/sub_commands/dependency_delete.py,sha256=
|
|
52
|
+
amsdal_cli/commands/cloud/dependency/sub_commands/dependency_delete.py,sha256=8IL5JE4-tBIStoHEteiBWo-Onsv8vLriy79ITSg18Hg,2849
|
|
53
53
|
amsdal_cli/commands/cloud/dependency/sub_commands/dependency_list.py,sha256=n49qaetWboVsrsI6DDCZg5KVroXk2p_C0MhWeF4tP-Y,5297
|
|
54
54
|
amsdal_cli/commands/cloud/dependency/sub_commands/dependency_new.py,sha256=FSH7F5Hr15ThY04xQg4IkHOzqr1vWfXiqSCsTnMR0zo,2991
|
|
55
55
|
amsdal_cli/commands/cloud/deploy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -160,7 +160,7 @@ amsdal_cli/commands/register_connection/utils/migrate_models.py,sha256=oU_5oZcwU
|
|
|
160
160
|
amsdal_cli/commands/register_connection/utils/model_generator.py,sha256=w0vz-i-tMdimcQYmFbtfpOZJF8heTTRIzu1yTdbKBpc,10853
|
|
161
161
|
amsdal_cli/commands/register_connection/utils/tables.py,sha256=FOwbWOpEw485Leoqe8LXCVY5osGKTKlMqWD9oqosapk,474
|
|
162
162
|
amsdal_cli/commands/restore/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
163
|
-
amsdal_cli/commands/restore/command.py,sha256=
|
|
163
|
+
amsdal_cli/commands/restore/command.py,sha256=4ybZ_p5i7t3QHfvz__FUmdO2vaK-4D5YR1XDOjhoSgc,36032
|
|
164
164
|
amsdal_cli/commands/restore/enums.py,sha256=6SiKMRGlSjiLyepfbfQFXGAYqlM6Bkoeko2KscntTUQ,307
|
|
165
165
|
amsdal_cli/commands/serve/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
166
166
|
amsdal_cli/commands/serve/command.py,sha256=x1_8gZDhRCUQt2-8v1K7__2uPjIlte_tY1ctJxVbl4k,6599
|
|
@@ -199,8 +199,8 @@ amsdal_cli/utils/vcs/base.py,sha256=jC05ExJZDnyHAsW7_4IDf8gQcYgK4dXq3zNlFIX66T4,
|
|
|
199
199
|
amsdal_cli/utils/vcs/dummy.py,sha256=Lk8MT-b0YlHHUsiXsq5cvmPwcl4jTYdo8piN5_C8ORA,434
|
|
200
200
|
amsdal_cli/utils/vcs/enums.py,sha256=tYR9LN1IOr8BZFbSeX_vDlhn8fPl4IU-Yakii8lRDYs,69
|
|
201
201
|
amsdal_cli/utils/vcs/git.py,sha256=xHynbZcV6p2D3RFCwu1MGGpV9D7eK-pGUtO8kVexTQM,1269
|
|
202
|
-
amsdal_cli-0.5.
|
|
203
|
-
amsdal_cli-0.5.
|
|
204
|
-
amsdal_cli-0.5.
|
|
205
|
-
amsdal_cli-0.5.
|
|
206
|
-
amsdal_cli-0.5.
|
|
202
|
+
amsdal_cli-0.5.2.dist-info/METADATA,sha256=Cw8QNTI-NaKoXG7Ijm3wvb4HXR3rk056YgJT0InZ6eg,57076
|
|
203
|
+
amsdal_cli-0.5.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
204
|
+
amsdal_cli-0.5.2.dist-info/entry_points.txt,sha256=GC-8LZsD3W--Pd9_gD4W3tw3ZZyPbSvkZ-qWc9Fx0NI,47
|
|
205
|
+
amsdal_cli-0.5.2.dist-info/licenses/LICENSE.txt,sha256=hG-541PFYfNJi9WRZi_hno91UyqNg7YLK8LR3vLblZA,27355
|
|
206
|
+
amsdal_cli-0.5.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|