amsdal_cli 0.4.9__tar.gz → 0.4.11__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.
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/PKG-INFO +1 -1
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/change-logs.md +12 -0
- amsdal_cli-0.4.11/latest-changelogs.md +5 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/pyproject.toml +5 -2
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/__about__.py +1 -1
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/services/builder.py +2 -2
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/services/mixin.py +1 -2
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_delete.py +3 -8
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_list.py +6 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_new.py +6 -6
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_delete.py +8 -13
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_list.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_new.py +118 -112
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_checkout.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_delete.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_list.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_new.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_delete.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_list.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_new.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/allowlist_delete.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/allowlist_new.py +6 -9
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_delete.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_new.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_retrieve.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/sub_commands/expose_db.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/sub_commands/get_monitoring_info.py +2 -5
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/sub_commands/sync_db.py +1 -1
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/migrations/sub_commands/apply.py +1 -1
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/migrations/sub_commands/list.py +1 -1
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/migrations/sub_commands/make.py +1 -1
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/new/templates/.gitignore +3 -0
- amsdal_cli-0.4.11/src/amsdal_cli/commands/new/templates/requirements.txt +2 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/serve/utils.py +10 -8
- amsdal_cli-0.4.9/latest-changelogs.md +0 -5
- amsdal_cli-0.4.9/src/amsdal_cli/commands/build/schemas/manager.py +0 -358
- amsdal_cli-0.4.9/src/amsdal_cli/commands/cloud/deploy/enums.py +0 -16
- amsdal_cli-0.4.9/src/amsdal_cli/commands/new/templates/requirements.txt +0 -1
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/.editorconfig +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/.gitignore +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/CONTRIBUTING.md +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/LICENSE.txt +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/README.md +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/license_check.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/release_notes/.gitkeep +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/scripts/release.sh +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/scripts/tag_check.sh +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/Third-Party Materials - AMSDAL Dependencies - License Notices.md +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/app.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/constants.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/data_models/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/data_models/custom_code.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/data_models/options.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/data_models/schemas_directory.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/extenders/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/extenders/custom_code_extender.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/extenders/options_extender.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/loaders/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/loaders/base.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/loaders/cli_custom_code_loader.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/loaders/cli_loader.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/loaders/cli_options_loader.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/loaders/cli_statics_loader.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/loaders/cli_transactions_loader.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/loaders/utils.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/mixins/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/mixins/enrich_schemas_mixin.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/schema_json_loader.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/utils/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/schemas/utils/merger.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/services/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/utils/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/build/utils/build_config_file.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/callbacks.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/ci_cd/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/ci_cd/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/ci_cd/constants.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/ci_cd/templates/github.yml +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/clean/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/clean/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/app.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/dependency/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/dependency/app.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/dependency/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/dependency/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/deploy/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/deploy/app.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/deploy/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/deploy/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/enums.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/environments/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/environments/app.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/environments/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/environments/constants.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/environments/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/environments/utils.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/secret/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/secret/app.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/secret/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/secret/constants.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/secret/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/allowlist/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/allowlist/app.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/allowlist/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/app.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/basic_auth/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/basic_auth/app.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/basic_auth/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/security/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/cloud/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/app.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/enums.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/sub_commands/generate_frontend_config.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/sub_commands/generate_hook.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/sub_commands/generate_model.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/sub_commands/generate_modifier.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/sub_commands/generate_permission.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/sub_commands/generate_property.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/sub_commands/generate_tests.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/sub_commands/generate_transaction.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/templates/async_transaction.pyt +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/templates/hook.pyt +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/templates/modifier/constructor.pyt +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/templates/modifier/display_name.pyt +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/templates/modifier/version_name.pyt +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/templates/property.pyt +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/templates/transaction.pyt +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/build_base_path.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/cast_to_attribute_type.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/model_attributes.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/tests/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/tests/async_mode_utils.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/tests/conftest_utils.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/tests/function_utils.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/tests/model_utils.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/tests/templates/async/conftest.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/tests/templates/sync/conftest.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/tests/type_utils.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/generate/utils/tests/unit.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/migrations/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/migrations/app.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/migrations/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/migrations/constants.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/migrations/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/new/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/new/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/new/templates/.amsdal/.dependencies +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/new/templates/.amsdal/.environment +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/new/templates/.amsdal/.secrets +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/new/templates/.amsdal-cli +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/new/templates/README.md +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/new/templates/config.yml +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/register_connection/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/register_connection/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/register_connection/utils/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/register_connection/utils/build.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/register_connection/utils/config_updater.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/register_connection/utils/credentials.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/register_connection/utils/initialize.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/register_connection/utils/meta.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/register_connection/utils/migrate_models.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/register_connection/utils/model_generator.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/register_connection/utils/tables.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/restore/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/restore/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/restore/enums.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/serve/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/serve/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/serve/filters/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/serve/filters/models_watch_filter.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/serve/filters/static_files_watch_filter.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/serve/services/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/serve/services/supervisor.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/tests/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/tests/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/verify/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/verify/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/verify/models.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/verify/utils/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/verify/utils/verify_json_model.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/verify/utils/verify_python_file.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/worker/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/worker/app.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/worker/command.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/worker/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/commands/worker/sub_commands/run.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/config/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/config/main.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/main.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/py.typed +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/alias_group.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/check_versions.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/cli_config.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/copier.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/markdown_patch.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/render_template.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/schema_repository.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/text.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/vcs/__init__.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/vcs/base.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/vcs/dummy.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/vcs/enums.py +0 -0
- {amsdal_cli-0.4.9 → amsdal_cli-0.4.11}/src/amsdal_cli/utils/vcs/git.py +0 -0
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [v0.4.11](https://pypi.org/project/amsdal_cli/0.4.11/) - 2025-04-07
|
|
2
|
+
|
|
3
|
+
### Changed
|
|
4
|
+
|
|
5
|
+
- Quite build on most commands
|
|
6
|
+
|
|
7
|
+
## [v0.4.10](https://pypi.org/project/amsdal_cli/0.4.10/) - 2025-04-03
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Fix for migrations detection
|
|
12
|
+
|
|
1
13
|
## [v0.4.9](https://pypi.org/project/amsdal_cli/0.4.9/) - 2025-04-01
|
|
2
14
|
|
|
3
15
|
### Fixed
|
|
@@ -78,7 +78,7 @@ dependencies = [
|
|
|
78
78
|
[tool.hatch.envs.default.scripts]
|
|
79
79
|
test = "pytest -n auto {args:tests}"
|
|
80
80
|
test-single = "pytest -vvv {args:tests}"
|
|
81
|
-
test-cov = "pytest --cov=src {args:tests}"
|
|
81
|
+
test-cov = "pytest -n auto --cov=src {args:tests}"
|
|
82
82
|
cov = [
|
|
83
83
|
"test-cov",
|
|
84
84
|
]
|
|
@@ -126,7 +126,8 @@ pre-install-commands = [
|
|
|
126
126
|
|
|
127
127
|
[tool.hatch.envs.local.scripts]
|
|
128
128
|
test = "pytest -n auto {args:tests}"
|
|
129
|
-
test-
|
|
129
|
+
test-single = "pytest -vvv {args:tests}"
|
|
130
|
+
test-cov = "pytest -n auto --cov=src {args:tests}"
|
|
130
131
|
cov = [
|
|
131
132
|
"test-cov",
|
|
132
133
|
]
|
|
@@ -250,6 +251,8 @@ parallel = true
|
|
|
250
251
|
omit = [
|
|
251
252
|
"src/amsdal_cli/__about__.py",
|
|
252
253
|
"src/amsdal_cli/commands/register_connection/*",
|
|
254
|
+
"src/amsdal_cli/commands/restore/*",
|
|
255
|
+
"src/amsdal_cli/commands/cloud/sub_commands/sync_db.py",
|
|
253
256
|
]
|
|
254
257
|
|
|
255
258
|
[tool.coverage.paths]
|
|
@@ -83,8 +83,8 @@ class AppBuilder(BuildMixin):
|
|
|
83
83
|
USER_MODELS_MODULE_PATH=output / 'models',
|
|
84
84
|
)
|
|
85
85
|
|
|
86
|
-
settings.
|
|
87
|
-
(settings.
|
|
86
|
+
settings.user_models_path.mkdir(parents=True, exist_ok=True)
|
|
87
|
+
(settings.user_models_path / '__init__.py').touch(exist_ok=True)
|
|
88
88
|
|
|
89
89
|
config_manager = AmsdalConfigManager()
|
|
90
90
|
config_manager.load_config(self.config_path)
|
|
@@ -18,7 +18,7 @@ class BuildMixin:
|
|
|
18
18
|
Builds models from the specified user schemas path and predefined schema directories.
|
|
19
19
|
|
|
20
20
|
Args:
|
|
21
|
-
|
|
21
|
+
cli_config (CliConfig): CLI config object.
|
|
22
22
|
|
|
23
23
|
Returns:
|
|
24
24
|
None
|
|
@@ -31,7 +31,6 @@ class BuildMixin:
|
|
|
31
31
|
from amsdal_cli.utils.schema_repository import build_schema_repository
|
|
32
32
|
|
|
33
33
|
schema_repository = build_schema_repository(cli_config)
|
|
34
|
-
|
|
35
34
|
class_builder = ClassBuilder()
|
|
36
35
|
|
|
37
36
|
for user_schema in schema_repository.user_schemas:
|
|
@@ -40,8 +40,7 @@ def dependency_delete_command(
|
|
|
40
40
|
if cli_config.verbose:
|
|
41
41
|
rprint(
|
|
42
42
|
rich_info(
|
|
43
|
-
f'Deleting dependency {rich_highlight(dependency_name)} from environment: '
|
|
44
|
-
f'{rich_highlight(env_name)}'
|
|
43
|
+
f'Deleting dependency {rich_highlight(dependency_name)} from environment: {rich_highlight(env_name)}'
|
|
45
44
|
)
|
|
46
45
|
)
|
|
47
46
|
|
|
@@ -51,13 +50,9 @@ def dependency_delete_command(
|
|
|
51
50
|
cli_config=cli_config,
|
|
52
51
|
config_path=cli_config.config_path,
|
|
53
52
|
)
|
|
54
|
-
app_builder.build(output_path)
|
|
53
|
+
app_builder.build(output_path, is_silent=True)
|
|
55
54
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
56
|
-
|
|
57
|
-
if AmsdalConfigManager().get_config().async_mode:
|
|
58
|
-
manager = AsyncAmsdalManager()
|
|
59
|
-
else:
|
|
60
|
-
manager = AmsdalManager()
|
|
55
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
61
56
|
|
|
62
57
|
manager.authenticate()
|
|
63
58
|
|
|
@@ -68,13 +68,14 @@ def dependency_list_command(
|
|
|
68
68
|
cli_config=cli_config,
|
|
69
69
|
config_path=cli_config.config_path,
|
|
70
70
|
)
|
|
71
|
-
app_builder.build(output_path)
|
|
71
|
+
app_builder.build(output_path, is_silent=True)
|
|
72
72
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
manager = (
|
|
75
|
+
AsyncAmsdalManager(raise_on_new_signup=True)
|
|
76
|
+
if AmsdalConfigManager().get_config().async_mode
|
|
77
|
+
else AmsdalManager(raise_on_new_signup=True)
|
|
78
|
+
)
|
|
78
79
|
|
|
79
80
|
manager.authenticate()
|
|
80
81
|
|
|
@@ -54,13 +54,13 @@ def dependency_new_command(
|
|
|
54
54
|
cli_config=cli_config,
|
|
55
55
|
config_path=cli_config.config_path,
|
|
56
56
|
)
|
|
57
|
-
app_builder.build(output_path)
|
|
57
|
+
app_builder.build(output_path, is_silent=True)
|
|
58
58
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
manager = (
|
|
60
|
+
AsyncAmsdalManager(raise_on_new_signup=True)
|
|
61
|
+
if AmsdalConfigManager().get_config().async_mode
|
|
62
|
+
else AmsdalManager(raise_on_new_signup=True)
|
|
63
|
+
)
|
|
64
64
|
|
|
65
65
|
manager.authenticate()
|
|
66
66
|
|
|
@@ -35,13 +35,9 @@ def destroy_command(ctx: typer.Context, deployment_id: str) -> None:
|
|
|
35
35
|
cli_config=cli_config,
|
|
36
36
|
config_path=cli_config.config_path,
|
|
37
37
|
)
|
|
38
|
-
app_builder.build(output_path)
|
|
38
|
+
app_builder.build(output_path, is_silent=True)
|
|
39
39
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
40
|
-
|
|
41
|
-
if AmsdalConfigManager().get_config().async_mode:
|
|
42
|
-
manager = AsyncAmsdalManager()
|
|
43
|
-
else:
|
|
44
|
-
manager = AmsdalManager()
|
|
40
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
45
41
|
|
|
46
42
|
manager.authenticate()
|
|
47
43
|
|
|
@@ -65,17 +61,17 @@ def destroy_command(ctx: typer.Context, deployment_id: str) -> None:
|
|
|
65
61
|
rprint(rich_error(f'Deployment with ID {rich_highlight(deployment_id)} not found.'))
|
|
66
62
|
return
|
|
67
63
|
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
msg = (
|
|
65
|
+
(
|
|
70
66
|
f'You are about to destroy the deployment for {rich_highlight(cli_config.application_name)} '
|
|
71
67
|
f'and environment {rich_highlight(deployment_env)}.'
|
|
72
68
|
)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
msg = (
|
|
69
|
+
if cli_config.application_name
|
|
70
|
+
else (
|
|
76
71
|
f'You are about to destroy the deployment with ID {rich_highlight(deployment_id)} and '
|
|
77
72
|
f'environment {rich_highlight(deployment_env)}.'
|
|
78
73
|
)
|
|
74
|
+
)
|
|
79
75
|
|
|
80
76
|
if not CustomConfirm.ask(
|
|
81
77
|
rich_info(f'{msg} Are you sure you want to proceed?'),
|
|
@@ -94,7 +90,6 @@ def destroy_command(ctx: typer.Context, deployment_id: str) -> None:
|
|
|
94
90
|
|
|
95
91
|
rprint(
|
|
96
92
|
rich_success(
|
|
97
|
-
'Destroying process is in progress now. '
|
|
98
|
-
'After a few minutes, you can check the status of your deployment.'
|
|
93
|
+
'Destroying process is in progress now. After a few minutes, you can check the status of your deployment.'
|
|
99
94
|
)
|
|
100
95
|
)
|
|
@@ -40,13 +40,10 @@ async def list_command(
|
|
|
40
40
|
cli_config=cli_config,
|
|
41
41
|
config_path=cli_config.config_path,
|
|
42
42
|
)
|
|
43
|
-
app_builder.build(output_path)
|
|
43
|
+
app_builder.build(output_path, is_silent=True)
|
|
44
44
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
45
45
|
|
|
46
|
-
if AmsdalConfigManager().get_config().async_mode
|
|
47
|
-
manager = AsyncAmsdalManager()
|
|
48
|
-
else:
|
|
49
|
-
manager = AmsdalManager()
|
|
46
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
50
47
|
|
|
51
48
|
manager.authenticate()
|
|
52
49
|
|
|
@@ -91,140 +91,142 @@ async def _deploy(
|
|
|
91
91
|
cli_config=cli_config,
|
|
92
92
|
config_path=cli_config.config_path,
|
|
93
93
|
)
|
|
94
|
-
app_builder.build(output_path)
|
|
94
|
+
app_builder.build(output_path, is_silent=True)
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
manager: AsyncAmsdalManager | AmsdalManager | None = None
|
|
97
|
+
try:
|
|
98
|
+
if AmsdalConfigManager().get_config().async_mode:
|
|
99
|
+
manager = AsyncAmsdalManager()
|
|
100
|
+
await _async_check_missing_generated_migrations(cli_config, manager, app_source_path)
|
|
101
|
+
else:
|
|
102
|
+
manager = AmsdalManager()
|
|
103
|
+
_check_missing_generated_migrations(cli_config, manager, app_source_path)
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
manager.authenticate()
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
)
|
|
114
|
-
except AmsdalCloudError as e:
|
|
115
|
-
rprint(rich_error(f'Failed to loading dependencies: {e}'))
|
|
116
|
-
raise typer.Exit(1) from e
|
|
117
|
-
|
|
118
|
-
config_dir: Path = cli_config.app_directory / '.amsdal'
|
|
119
|
-
config_dir.mkdir(exist_ok=True, parents=True)
|
|
120
|
-
_deps_path: Path = config_dir / '.dependencies'
|
|
121
|
-
_deps_path.touch(exist_ok=True)
|
|
122
|
-
_deps = set(_deps_path.read_text().split('\n'))
|
|
123
|
-
_diff_deps = sorted(filter(None, _deps - set(list_response_deps.dependencies)))
|
|
124
|
-
|
|
125
|
-
if _diff_deps:
|
|
126
|
-
rprint(
|
|
127
|
-
rich_warning(
|
|
128
|
-
f'The following dependencies are missing: {", ".join(map(rich_highlight, _diff_deps))}'
|
|
107
|
+
if not skip_checks:
|
|
108
|
+
try:
|
|
109
|
+
list_response_deps = manager.cloud_actions_manager.list_dependencies(
|
|
110
|
+
env_name=env_name,
|
|
111
|
+
application_uuid=cli_config.application_uuid,
|
|
112
|
+
application_name=cli_config.application_name,
|
|
129
113
|
)
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
114
|
+
except AmsdalCloudError as e:
|
|
115
|
+
rprint(rich_error(f'Failed to loading dependencies: {e}'))
|
|
116
|
+
raise typer.Exit(1) from e
|
|
117
|
+
|
|
118
|
+
config_dir: Path = cli_config.app_directory / '.amsdal'
|
|
119
|
+
config_dir.mkdir(exist_ok=True, parents=True)
|
|
120
|
+
_deps_path: Path = config_dir / '.dependencies'
|
|
121
|
+
_deps_path.touch(exist_ok=True)
|
|
122
|
+
_deps = set(_deps_path.read_text().split('\n'))
|
|
123
|
+
_diff_deps = sorted(filter(None, _deps - set(list_response_deps.dependencies)))
|
|
124
|
+
|
|
125
|
+
if _diff_deps:
|
|
126
|
+
rprint(
|
|
127
|
+
rich_warning(
|
|
128
|
+
f'The following dependencies are missing: {", ".join(map(rich_highlight, _diff_deps))}'
|
|
129
|
+
)
|
|
141
130
|
)
|
|
142
131
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
132
|
+
if no_input:
|
|
133
|
+
rprint(rich_info('Installing missing dependencies...'))
|
|
134
|
+
install_deps = True
|
|
135
|
+
else:
|
|
136
|
+
install_deps = CustomConfirm.ask(
|
|
137
|
+
rich_info('Do you want to install the missing dependencies?'),
|
|
138
|
+
default=False,
|
|
139
|
+
show_default=False,
|
|
140
|
+
choices=['y', 'N'],
|
|
141
|
+
)
|
|
146
142
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
dependency_name=dependency_name,
|
|
151
|
-
env_name=env_name,
|
|
152
|
-
application_uuid=cli_config.application_uuid,
|
|
153
|
-
application_name=cli_config.application_name,
|
|
143
|
+
if not install_deps:
|
|
144
|
+
rprint(
|
|
145
|
+
rich_info('Use "amsdal cloud dependencies new NAME" to install the missing dependencies.')
|
|
154
146
|
)
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
147
|
+
raise typer.Exit(1)
|
|
148
|
+
|
|
149
|
+
for dependency_name in _diff_deps:
|
|
150
|
+
try:
|
|
151
|
+
manager.cloud_actions_manager.add_dependency(
|
|
152
|
+
dependency_name=dependency_name,
|
|
153
|
+
env_name=env_name,
|
|
154
|
+
application_uuid=cli_config.application_uuid,
|
|
155
|
+
application_name=cli_config.application_name,
|
|
156
|
+
)
|
|
157
|
+
except AmsdalCloudError as e:
|
|
158
|
+
rprint(rich_error(str(e)))
|
|
159
|
+
raise typer.Exit(1) from e
|
|
160
|
+
|
|
161
|
+
try:
|
|
162
|
+
list_response_secrets = manager.cloud_actions_manager.list_secrets(
|
|
163
|
+
with_values=False,
|
|
164
|
+
env_name=env_name,
|
|
165
|
+
application_uuid=cli_config.application_uuid,
|
|
166
|
+
application_name=cli_config.application_name,
|
|
167
|
+
)
|
|
168
|
+
except AmsdalCloudError as e:
|
|
169
|
+
rprint(rich_error(f'Failed to loading secrets: {e}'))
|
|
170
|
+
raise typer.Exit(1) from e
|
|
171
|
+
|
|
172
|
+
_secrets_path: Path = config_dir / '.secrets'
|
|
173
|
+
_secrets_path.touch(exist_ok=True)
|
|
174
|
+
_secrets = set(_secrets_path.read_text().split('\n'))
|
|
175
|
+
_diff_secrets = sorted(filter(None, _secrets - set(list_response_secrets.secrets)))
|
|
176
|
+
|
|
177
|
+
if _diff_secrets:
|
|
178
|
+
rprint(rich_error(f'The following secrets are missing: {", ".join(_diff_secrets)}'))
|
|
179
|
+
raise typer.Exit(1)
|
|
158
180
|
|
|
159
181
|
try:
|
|
160
|
-
|
|
161
|
-
|
|
182
|
+
manager.cloud_actions_manager.create_deploy(
|
|
183
|
+
deploy_type=deploy_type.value,
|
|
184
|
+
lakehouse_type=lakehouse_type.value,
|
|
162
185
|
env_name=env_name,
|
|
186
|
+
from_env=from_env,
|
|
163
187
|
application_uuid=cli_config.application_uuid,
|
|
164
188
|
application_name=cli_config.application_name,
|
|
189
|
+
no_input=no_input,
|
|
165
190
|
)
|
|
166
191
|
except AmsdalCloudError as e:
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
_diff_secrets = sorted(filter(None, _secrets - set(list_response_secrets.secrets)))
|
|
174
|
-
|
|
175
|
-
if _diff_secrets:
|
|
176
|
-
rprint(rich_error(f'The following secrets are missing: {", ".join(_diff_secrets)}'))
|
|
177
|
-
raise typer.Exit(1)
|
|
178
|
-
|
|
179
|
-
try:
|
|
180
|
-
manager.cloud_actions_manager.create_deploy(
|
|
181
|
-
deploy_type=deploy_type.value,
|
|
182
|
-
lakehouse_type=lakehouse_type.value,
|
|
183
|
-
env_name=env_name,
|
|
184
|
-
from_env=from_env,
|
|
185
|
-
application_uuid=cli_config.application_uuid,
|
|
186
|
-
application_name=cli_config.application_name,
|
|
187
|
-
no_input=no_input,
|
|
188
|
-
)
|
|
189
|
-
except AmsdalCloudError as e:
|
|
190
|
-
if str(e) in ['Same environment name', 'same_environment_name']:
|
|
191
|
-
rprint(
|
|
192
|
-
rich_error(
|
|
193
|
-
f'Trying to deploy {rich_highlight(env_name)} environment from '
|
|
194
|
-
f'{rich_highlight(str(from_env))}. Please check the environment names.'
|
|
192
|
+
if str(e) in ['Same environment name', 'same_environment_name']:
|
|
193
|
+
rprint(
|
|
194
|
+
rich_error(
|
|
195
|
+
f'Trying to deploy {rich_highlight(env_name)} environment from '
|
|
196
|
+
f'{rich_highlight(str(from_env))}. Please check the environment names.'
|
|
197
|
+
)
|
|
195
198
|
)
|
|
196
|
-
)
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
elif str(e) in ['Environment not found', 'environment_not_found']:
|
|
200
|
+
rprint(
|
|
201
|
+
rich_error(
|
|
202
|
+
f'Environment {rich_highlight(from_env if from_env else env_name)} not found. '
|
|
203
|
+
'Please check the environment name.'
|
|
204
|
+
)
|
|
202
205
|
)
|
|
203
|
-
)
|
|
204
206
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
elif str(e) in ['Environment not deployed', 'environment_not_deployed']:
|
|
208
|
+
rprint(
|
|
209
|
+
rich_error(
|
|
210
|
+
f'Environment {rich_highlight(str(from_env))} is not deployed. '
|
|
211
|
+
'Please check the environment name.'
|
|
212
|
+
)
|
|
210
213
|
)
|
|
211
|
-
)
|
|
212
214
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
+
else:
|
|
216
|
+
rprint(rich_error(str(e)))
|
|
215
217
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
218
|
+
raise typer.Exit(1) from e
|
|
219
|
+
finally:
|
|
220
|
+
if manager:
|
|
221
|
+
if AmsdalConfigManager().get_config().async_mode:
|
|
222
|
+
if manager.is_setup:
|
|
223
|
+
await manager.teardown() # type: ignore[misc]
|
|
224
|
+
else:
|
|
225
|
+
AsyncAmsdalManager.invalidate()
|
|
226
|
+
elif manager.is_setup:
|
|
227
|
+
manager.teardown()
|
|
222
228
|
else:
|
|
223
|
-
|
|
224
|
-
elif manager.is_setup:
|
|
225
|
-
manager.teardown()
|
|
226
|
-
else:
|
|
227
|
-
AmsdalManager.invalidate()
|
|
229
|
+
AmsdalManager.invalidate()
|
|
228
230
|
|
|
229
231
|
|
|
230
232
|
def _check_missing_generated_migrations(
|
|
@@ -247,6 +249,7 @@ def _check_missing_generated_migrations(
|
|
|
247
249
|
from amsdal_utils.models.enums import ModuleType
|
|
248
250
|
|
|
249
251
|
from amsdal_cli.commands.migrations.constants import MIGRATIONS_DIR_NAME
|
|
252
|
+
from amsdal_cli.utils.cli_config import ModelsFormat
|
|
250
253
|
from amsdal_cli.utils.schema_repository import build_schema_repository
|
|
251
254
|
from amsdal_cli.utils.text import rich_error
|
|
252
255
|
|
|
@@ -260,6 +263,7 @@ def _check_missing_generated_migrations(
|
|
|
260
263
|
|
|
261
264
|
amsdal_manager.post_setup()
|
|
262
265
|
migrations_dir = app_source_path / MIGRATIONS_DIR_NAME
|
|
266
|
+
cli_config.models_format = ModelsFormat.PY
|
|
263
267
|
schema_repository = build_schema_repository(cli_config=cli_config)
|
|
264
268
|
generator = FileMigrationGenerator(
|
|
265
269
|
core_migrations_path=CORE_MIGRATIONS_PATH,
|
|
@@ -294,6 +298,7 @@ async def _async_check_missing_generated_migrations(
|
|
|
294
298
|
from amsdal_utils.models.enums import ModuleType
|
|
295
299
|
|
|
296
300
|
from amsdal_cli.commands.migrations.constants import MIGRATIONS_DIR_NAME
|
|
301
|
+
from amsdal_cli.utils.cli_config import ModelsFormat
|
|
297
302
|
from amsdal_cli.utils.schema_repository import build_schema_repository
|
|
298
303
|
from amsdal_cli.utils.text import rich_error
|
|
299
304
|
|
|
@@ -309,6 +314,7 @@ async def _async_check_missing_generated_migrations(
|
|
|
309
314
|
|
|
310
315
|
migrations_dir = app_source_path / MIGRATIONS_DIR_NAME
|
|
311
316
|
|
|
317
|
+
cli_config.models_format = ModelsFormat.PY
|
|
312
318
|
schema_repository = build_schema_repository(cli_config=cli_config)
|
|
313
319
|
generator = AsyncFileMigrationGenerator(
|
|
314
320
|
core_migrations_path=CORE_MIGRATIONS_PATH,
|
|
@@ -34,13 +34,10 @@ def environments_checkout(ctx: typer.Context, env_name: str) -> None:
|
|
|
34
34
|
cli_config=cli_config,
|
|
35
35
|
config_path=cli_config.config_path,
|
|
36
36
|
)
|
|
37
|
-
app_builder.build(output_path)
|
|
37
|
+
app_builder.build(output_path, is_silent=True)
|
|
38
38
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
39
39
|
|
|
40
|
-
if AmsdalConfigManager().get_config().async_mode
|
|
41
|
-
manager = AsyncAmsdalManager()
|
|
42
|
-
else:
|
|
43
|
-
manager = AmsdalManager()
|
|
40
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
44
41
|
|
|
45
42
|
manager.authenticate()
|
|
46
43
|
|
|
@@ -31,13 +31,10 @@ def env_delete_command(ctx: typer.Context, env_name: str) -> None:
|
|
|
31
31
|
cli_config=cli_config,
|
|
32
32
|
config_path=cli_config.config_path,
|
|
33
33
|
)
|
|
34
|
-
app_builder.build(output_path)
|
|
34
|
+
app_builder.build(output_path, is_silent=True)
|
|
35
35
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
36
36
|
|
|
37
|
-
if AmsdalConfigManager().get_config().async_mode
|
|
38
|
-
manager = AsyncAmsdalManager()
|
|
39
|
-
else:
|
|
40
|
-
manager = AmsdalManager()
|
|
37
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
41
38
|
|
|
42
39
|
manager.authenticate()
|
|
43
40
|
|
|
@@ -42,13 +42,10 @@ def environments_list_callback(
|
|
|
42
42
|
cli_config=cli_config,
|
|
43
43
|
config_path=cli_config.config_path,
|
|
44
44
|
)
|
|
45
|
-
app_builder.build(output_path)
|
|
45
|
+
app_builder.build(output_path, is_silent=True)
|
|
46
46
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
47
47
|
|
|
48
|
-
if AmsdalConfigManager().get_config().async_mode
|
|
49
|
-
manager = AsyncAmsdalManager()
|
|
50
|
-
else:
|
|
51
|
-
manager = AmsdalManager()
|
|
48
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
52
49
|
|
|
53
50
|
manager.authenticate()
|
|
54
51
|
|
|
@@ -31,13 +31,10 @@ def env_add_command(ctx: typer.Context, env_name: str) -> None:
|
|
|
31
31
|
cli_config=cli_config,
|
|
32
32
|
config_path=cli_config.config_path,
|
|
33
33
|
)
|
|
34
|
-
app_builder.build(output_path)
|
|
34
|
+
app_builder.build(output_path, is_silent=True)
|
|
35
35
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
36
36
|
|
|
37
|
-
if AmsdalConfigManager().get_config().async_mode
|
|
38
|
-
manager = AsyncAmsdalManager()
|
|
39
|
-
else:
|
|
40
|
-
manager = AmsdalManager()
|
|
37
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
41
38
|
|
|
42
39
|
manager.authenticate()
|
|
43
40
|
|
|
@@ -46,13 +46,10 @@ def secret_delete_command(
|
|
|
46
46
|
cli_config=cli_config,
|
|
47
47
|
config_path=cli_config.config_path,
|
|
48
48
|
)
|
|
49
|
-
app_builder.build(output_path)
|
|
49
|
+
app_builder.build(output_path, is_silent=True)
|
|
50
50
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
51
51
|
|
|
52
|
-
if AmsdalConfigManager().get_config().async_mode
|
|
53
|
-
manager = AsyncAmsdalManager()
|
|
54
|
-
else:
|
|
55
|
-
manager = AmsdalManager()
|
|
52
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
56
53
|
|
|
57
54
|
manager.authenticate()
|
|
58
55
|
|
|
@@ -68,13 +68,10 @@ def secret_list_command(
|
|
|
68
68
|
cli_config=cli_config,
|
|
69
69
|
config_path=cli_config.config_path,
|
|
70
70
|
)
|
|
71
|
-
app_builder.build(output_path)
|
|
71
|
+
app_builder.build(output_path, is_silent=True)
|
|
72
72
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
73
73
|
|
|
74
|
-
if AmsdalConfigManager().get_config().async_mode
|
|
75
|
-
manager = AsyncAmsdalManager()
|
|
76
|
-
else:
|
|
77
|
-
manager = AmsdalManager()
|
|
74
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
78
75
|
|
|
79
76
|
manager.authenticate()
|
|
80
77
|
|
|
@@ -48,13 +48,10 @@ def secret_add_command(
|
|
|
48
48
|
cli_config=cli_config,
|
|
49
49
|
config_path=cli_config.config_path,
|
|
50
50
|
)
|
|
51
|
-
app_builder.build(output_path)
|
|
51
|
+
app_builder.build(output_path, is_silent=True)
|
|
52
52
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
53
53
|
|
|
54
|
-
if AmsdalConfigManager().get_config().async_mode
|
|
55
|
-
manager = AsyncAmsdalManager()
|
|
56
|
-
else:
|
|
57
|
-
manager = AmsdalManager()
|
|
54
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
58
55
|
|
|
59
56
|
manager.authenticate()
|
|
60
57
|
|
|
@@ -68,13 +68,10 @@ def delete_allowlist_ip_command(
|
|
|
68
68
|
cli_config=cli_config,
|
|
69
69
|
config_path=cli_config.config_path,
|
|
70
70
|
)
|
|
71
|
-
app_builder.build(output_path)
|
|
71
|
+
app_builder.build(output_path, is_silent=True)
|
|
72
72
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
73
73
|
|
|
74
|
-
if AmsdalConfigManager().get_config().async_mode
|
|
75
|
-
manager = AsyncAmsdalManager()
|
|
76
|
-
else:
|
|
77
|
-
manager = AmsdalManager()
|
|
74
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
78
75
|
|
|
79
76
|
manager.authenticate()
|
|
80
77
|
|