amsdal_cli 0.9.2__tar.gz → 0.9.3__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.9.2 → amsdal_cli-0.9.3}/PKG-INFO +3 -3
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/change-logs.md +27 -0
- amsdal_cli-0.9.3/latest-changelogs.md +26 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/pyproject.toml +2 -2
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/__about__.py +1 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_delete.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_list.py +3 -6
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_new.py +3 -6
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_delete.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_list.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_new.py +4 -3
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_checkout.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_delete.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_list.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_new.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/external_connections/sub_commands/connection_add.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/external_connections/sub_commands/connection_list.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/external_connections/sub_commands/connection_remove.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/external_connections/sub_commands/connection_update.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_delete.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_list.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_new.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/allowlist_delete.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/allowlist_new.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_delete.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_new.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_retrieve.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/sub_commands/expose_db.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/sub_commands/gen_token.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/sub_commands/get_monitoring_info.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/sub_commands/sync_db.py +2 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/sub_commands/tunnel_db.py +2 -1
- amsdal_cli-0.9.3/src/amsdal_cli/commands/generate/utils/tests/model_utils.py +171 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/utils/tests/type_utils.py +52 -1
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/utils/tests/unit.py +7 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/migrations/sub_commands/apply.py +0 -3
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/migrations/sub_commands/list.py +0 -2
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/migrations/sub_commands/make.py +0 -2
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/migrations/sub_commands/make_contrib.py +0 -2
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/register_connection/utils/initialize.py +0 -2
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/restore/command.py +0 -2
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/serve/command.py +3 -6
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/serve/services/supervisor.py +0 -19
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/serve/utils.py +0 -12
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/tests/command.py +18 -21
- amsdal_cli-0.9.3/src/amsdal_cli/utils/auth.py +39 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/uv.lock +57 -56
- amsdal_cli-0.9.2/latest-changelogs.md +0 -6
- amsdal_cli-0.9.2/src/amsdal_cli/commands/generate/utils/tests/model_utils.py +0 -127
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/.editorconfig +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/.gitignore +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/.junie/guidelines.md +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/CONTRIBUTING.md +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/LICENSE.txt +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/README.md +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/license_check.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/release_notes/.gitkeep +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/scripts/release.sh +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/scripts/tag_check.sh +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/Third-Party Materials - AMSDAL Dependencies - License Notices.md +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/api_check/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/api_check/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/api_check/config.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/api_check/data_classes.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/api_check/operation_log.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/api_check/services/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/api_check/services/comparison.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/api_check/services/data_factory.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/api_check/services/loader.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/api_check/services/runner.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/api_check/services/storage.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/constants.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/data_models/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/data_models/custom_code.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/data_models/options.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/data_models/schemas_directory.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/extenders/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/extenders/custom_code_extender.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/extenders/options_extender.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/loaders/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/loaders/base.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/loaders/cli_custom_code_loader.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/loaders/cli_loader.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/loaders/cli_options_loader.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/loaders/cli_statics_loader.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/loaders/cli_transactions_loader.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/loaders/utils.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/mixins/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/mixins/enrich_schemas_mixin.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/schema_json_loader.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/utils/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/schemas/utils/merger.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/services/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/services/builder.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/services/mixin.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/utils/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/build/utils/build_config_file.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/callbacks.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/ci_cd/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/ci_cd/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/ci_cd/constants.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/ci_cd/templates/github.yml +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/clean/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/clean/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/dependency/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/dependency/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/dependency/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/dependency/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/deploy/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/deploy/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/deploy/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/deploy/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/enums.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/environments/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/environments/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/environments/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/environments/constants.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/environments/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/environments/utils.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/external_connections/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/external_connections/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/external_connections/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/external_connections/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/secret/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/secret/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/secret/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/secret/constants.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/secret/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/allowlist/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/allowlist/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/allowlist/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/basic_auth/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/basic_auth/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/basic_auth/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/security/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/gen_token/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/gen_token/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/enums.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/sub_commands/generate_external_models.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/sub_commands/generate_frontend_config.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/sub_commands/generate_hook.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/sub_commands/generate_model.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/sub_commands/generate_modifier.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/sub_commands/generate_permission.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/sub_commands/generate_property.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/sub_commands/generate_tests.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/sub_commands/generate_transaction.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/templates/async_transaction.pyt +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/templates/hook.pyt +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/templates/modifier/constructor.pyt +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/templates/modifier/display_name.pyt +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/templates/modifier/version_name.pyt +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/templates/property.pyt +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/templates/transaction.pyt +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/utils/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/utils/build_base_path.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/utils/cast_to_attribute_type.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/utils/model_attributes.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/utils/tests/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/utils/tests/async_mode_utils.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/utils/tests/conftest_utils.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/utils/tests/function_utils.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/utils/tests/templates/async/conftest.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/generate/utils/tests/templates/sync/conftest.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/migrations/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/migrations/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/migrations/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/migrations/constants.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/migrations/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/migrations/utils.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/new/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/new/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/new/templates/.amsdal/.dependencies +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/new/templates/.amsdal/.environment +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/new/templates/.amsdal/.secrets +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/new/templates/.amsdal-cli +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/new/templates/.env.template +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/new/templates/.gitignore +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/new/templates/README.md +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/new/templates/config.yml +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/new/templates/requirements.txt +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/new/templates/src/app.pyt +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/plugin/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/plugin/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/plugin/templates/.amsdal-cli +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/plugin/templates/README.md +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/plugin/templates/config.yml +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/plugin/templates/pyproject.toml +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/plugin/templates/src/__about__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/plugin/templates/src/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/plugin/templates/src/models/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/plugin/templates/src/transactions/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/plugin/templates/src/transactions/example_transaction.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/register_connection/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/register_connection/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/register_connection/utils/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/register_connection/utils/build.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/register_connection/utils/config_updater.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/register_connection/utils/credentials.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/register_connection/utils/meta.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/register_connection/utils/migrate_models.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/register_connection/utils/model_generator.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/register_connection/utils/tables.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/restore/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/restore/enums.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/serve/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/serve/filters/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/serve/filters/models_watch_filter.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/serve/filters/static_files_watch_filter.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/serve/services/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/tests/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/verify/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/verify/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/verify/models.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/verify/utils/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/verify/utils/verify_json_model.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/verify/utils/verify_python_file.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/worker/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/worker/app.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/worker/command.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/worker/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/worker/sub_commands/run.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/config/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/config/main.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/main.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/py.typed +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/services/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/services/gen_token.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/alias_group.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/check_versions.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/cli_config.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/copier.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/markdown_patch.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/render_template.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/schema_repository.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/text.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/vcs/__init__.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/vcs/base.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/vcs/dummy.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/vcs/enums.py +0 -0
- {amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/utils/vcs/git.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: amsdal_cli
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.3
|
|
4
4
|
Summary: CLI for AMSDAL framework
|
|
5
5
|
Project-URL: Documentation, https://pypi.org/project/amsdal_cli/#readme
|
|
6
6
|
Project-URL: Issues, https://pypi.org/project/amsdal_cli/
|
|
@@ -122,8 +122,8 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
122
122
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
123
123
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
124
124
|
Requires-Python: <3.14,>=3.11
|
|
125
|
-
Requires-Dist: amsdal-server>=0.9.
|
|
126
|
-
Requires-Dist: amsdal>=0.9.
|
|
125
|
+
Requires-Dist: amsdal-server>=0.9.1
|
|
126
|
+
Requires-Dist: amsdal>=0.9.4
|
|
127
127
|
Requires-Dist: click<8.2.0
|
|
128
128
|
Requires-Dist: cryptography
|
|
129
129
|
Requires-Dist: faker==27.*
|
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## [v0.9.3](https://pypi.org/project/amsdal_cli/0.9.3/) - 2026-06-15
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Changed
|
|
5
|
+
|
|
6
|
+
- Bumped runtime dependencies to `amsdal>=0.9.4` and `amsdal_server>=0.9.1`.
|
|
7
|
+
- Credentials are now required only for the `cloud` and `serve` commands. Other
|
|
8
|
+
commands (`migrations`, `restore`, `register-connection`, ...) no longer
|
|
9
|
+
authenticate and run without credentials.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- `generate tests` no longer crashes with `Unsupported data type` on `anything`/
|
|
14
|
+
`object` fields (now generated as an empty dict `{}`) and `binary` fields (now
|
|
15
|
+
generated as bytes).
|
|
16
|
+
- `generate tests` now fills enum/`Literal` fields with one of their allowed
|
|
17
|
+
values instead of a random string that failed model validation at runtime.
|
|
18
|
+
- `generate tests` no longer emits `late registration after freeze()` warnings and
|
|
19
|
+
no longer re-imports the whole models package for every referenced model.
|
|
20
|
+
Contrib/plugin models referenced from user models (e.g. auth/CRM models) now
|
|
21
|
+
resolve correctly.
|
|
22
|
+
- `amsdal test` no longer fails with `ModuleNotFoundError: No module named
|
|
23
|
+
'models'`; the application is now built before the manager is set up.
|
|
24
|
+
- The `cloud` and `serve` commands again show the interactive sign-up prompt when
|
|
25
|
+
credentials are missing, instead of surfacing a raw authentication error (the
|
|
26
|
+
`serve` auto-reload worker still reports the underlying error).
|
|
27
|
+
|
|
1
28
|
## [v0.9.2](https://pypi.org/project/amsdal_cli/0.9.2/) - 2026-06-11
|
|
2
29
|
|
|
3
30
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
## [v0.9.3](https://pypi.org/project/amsdal_cli/0.9.3/) - 2026-06-15
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Changed
|
|
5
|
+
|
|
6
|
+
- Bumped runtime dependencies to `amsdal>=0.9.4` and `amsdal_server>=0.9.1`.
|
|
7
|
+
- Credentials are now required only for the `cloud` and `serve` commands. Other
|
|
8
|
+
commands (`migrations`, `restore`, `register-connection`, ...) no longer
|
|
9
|
+
authenticate and run without credentials.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- `generate tests` no longer crashes with `Unsupported data type` on `anything`/
|
|
14
|
+
`object` fields (now generated as an empty dict `{}`) and `binary` fields (now
|
|
15
|
+
generated as bytes).
|
|
16
|
+
- `generate tests` now fills enum/`Literal` fields with one of their allowed
|
|
17
|
+
values instead of a random string that failed model validation at runtime.
|
|
18
|
+
- `generate tests` no longer emits `late registration after freeze()` warnings and
|
|
19
|
+
no longer re-imports the whole models package for every referenced model.
|
|
20
|
+
Contrib/plugin models referenced from user models (e.g. auth/CRM models) now
|
|
21
|
+
resolve correctly.
|
|
22
|
+
- `amsdal test` no longer fails with `ModuleNotFoundError: No module named
|
|
23
|
+
'models'`; the application is now built before the manager is set up.
|
|
24
|
+
- The `cloud` and `serve` commands again show the interactive sign-up prompt when
|
|
25
|
+
credentials are missing, instead of surfacing a raw authentication error (the
|
|
26
|
+
`serve` auto-reload worker still reports the underlying error).
|
|
@@ -7,6 +7,7 @@ from rich import print as rprint
|
|
|
7
7
|
from typer import Option
|
|
8
8
|
|
|
9
9
|
from amsdal_cli.commands.cloud.dependency.app import dependency_sub_app
|
|
10
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
@dependency_sub_app.command(name='delete, del, d')
|
|
@@ -54,7 +55,7 @@ def dependency_delete_command(
|
|
|
54
55
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
55
56
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
56
57
|
|
|
57
|
-
manager
|
|
58
|
+
ensure_authenticated(manager)
|
|
58
59
|
|
|
59
60
|
try:
|
|
60
61
|
manager.cloud_actions_manager.delete_dependency(
|
|
@@ -11,6 +11,7 @@ from typer import Option
|
|
|
11
11
|
|
|
12
12
|
from amsdal_cli.commands.cloud.dependency.app import dependency_sub_app
|
|
13
13
|
from amsdal_cli.commands.cloud.enums import OutputFormat
|
|
14
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
def dependency_list_command(
|
|
@@ -71,13 +72,9 @@ def dependency_list_command(
|
|
|
71
72
|
app_builder.build(output_path, is_silent=True)
|
|
72
73
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
73
74
|
|
|
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
|
-
)
|
|
75
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
79
76
|
|
|
80
|
-
manager
|
|
77
|
+
ensure_authenticated(manager)
|
|
81
78
|
|
|
82
79
|
AmsdalConfigManager().load_config(cli_config.config_path)
|
|
83
80
|
|
|
@@ -7,6 +7,7 @@ from rich import print as rprint
|
|
|
7
7
|
from typer import Option
|
|
8
8
|
|
|
9
9
|
from amsdal_cli.commands.cloud.dependency.app import dependency_sub_app
|
|
10
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
@dependency_sub_app.command(name='new, n')
|
|
@@ -56,13 +57,9 @@ def dependency_new_command(
|
|
|
56
57
|
)
|
|
57
58
|
app_builder.build(output_path, is_silent=True)
|
|
58
59
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
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
|
-
)
|
|
60
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
64
61
|
|
|
65
|
-
manager
|
|
62
|
+
ensure_authenticated(manager)
|
|
66
63
|
|
|
67
64
|
AmsdalConfigManager().load_config(cli_config.config_path)
|
|
68
65
|
|
|
@@ -5,6 +5,7 @@ import typer
|
|
|
5
5
|
from rich import print as rprint
|
|
6
6
|
|
|
7
7
|
from amsdal_cli.commands.cloud.deploy.app import deploy_sub_app
|
|
8
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
@deploy_sub_app.command(name='delete, del, d')
|
|
@@ -39,7 +40,7 @@ def destroy_command(ctx: typer.Context, deployment_id: str) -> None:
|
|
|
39
40
|
manager: AsyncAmsdalManager | AmsdalManager
|
|
40
41
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
41
42
|
|
|
42
|
-
manager
|
|
43
|
+
ensure_authenticated(manager)
|
|
43
44
|
|
|
44
45
|
current_env = get_current_env(cli_config)
|
|
45
46
|
|
|
@@ -11,6 +11,7 @@ from rich.table import Table
|
|
|
11
11
|
|
|
12
12
|
from amsdal_cli.commands.cloud.deploy.app import deploy_sub_app
|
|
13
13
|
from amsdal_cli.commands.cloud.enums import OutputFormat
|
|
14
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
async def list_command(
|
|
@@ -45,7 +46,7 @@ async def list_command(
|
|
|
45
46
|
|
|
46
47
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
47
48
|
|
|
48
|
-
manager
|
|
49
|
+
ensure_authenticated(manager)
|
|
49
50
|
|
|
50
51
|
AmsdalConfigManager().load_config(cli_config.config_path)
|
|
51
52
|
|
|
@@ -11,6 +11,7 @@ from rich import print as rprint
|
|
|
11
11
|
from typer import Option
|
|
12
12
|
|
|
13
13
|
from amsdal_cli.commands.cloud.deploy.app import deploy_sub_app
|
|
14
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
14
15
|
|
|
15
16
|
if typing.TYPE_CHECKING:
|
|
16
17
|
from amsdal.manager import AmsdalManager
|
|
@@ -101,7 +102,7 @@ async def _deploy(
|
|
|
101
102
|
manager = AmsdalManager()
|
|
102
103
|
_check_missing_generated_migrations(cli_config, manager, app_source_path)
|
|
103
104
|
|
|
104
|
-
manager
|
|
105
|
+
ensure_authenticated(manager)
|
|
105
106
|
|
|
106
107
|
if not skip_checks:
|
|
107
108
|
try:
|
|
@@ -257,7 +258,7 @@ def _check_missing_generated_migrations(
|
|
|
257
258
|
amsdal_manager.setup()
|
|
258
259
|
|
|
259
260
|
if not amsdal_manager.is_authenticated:
|
|
260
|
-
amsdal_manager
|
|
261
|
+
ensure_authenticated(amsdal_manager)
|
|
261
262
|
|
|
262
263
|
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
263
264
|
migrations_dir = app_source_path / MIGRATIONS_DIR_NAME
|
|
@@ -306,7 +307,7 @@ async def _async_check_missing_generated_migrations(
|
|
|
306
307
|
await amsdal_manager.setup()
|
|
307
308
|
|
|
308
309
|
if not amsdal_manager.is_authenticated:
|
|
309
|
-
amsdal_manager
|
|
310
|
+
ensure_authenticated(amsdal_manager)
|
|
310
311
|
|
|
311
312
|
await amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
312
313
|
|
|
@@ -5,6 +5,7 @@ import typer
|
|
|
5
5
|
from rich import print as rprint
|
|
6
6
|
|
|
7
7
|
from amsdal_cli.commands.cloud.environments.app import environment_sub_app
|
|
8
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
@environment_sub_app.command(name='checkout, co')
|
|
@@ -39,7 +40,7 @@ def environments_checkout(ctx: typer.Context, env_name: str) -> None:
|
|
|
39
40
|
|
|
40
41
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
41
42
|
|
|
42
|
-
manager
|
|
43
|
+
ensure_authenticated(manager)
|
|
43
44
|
|
|
44
45
|
try:
|
|
45
46
|
list_response = manager.cloud_actions_manager.list_envs(
|
|
@@ -5,6 +5,7 @@ import typer
|
|
|
5
5
|
from rich import print as rprint
|
|
6
6
|
|
|
7
7
|
from amsdal_cli.commands.cloud.environments.app import environment_sub_app
|
|
8
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
@environment_sub_app.command(name='delete, del, d')
|
|
@@ -36,7 +37,7 @@ def env_delete_command(ctx: typer.Context, env_name: str) -> None:
|
|
|
36
37
|
|
|
37
38
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
38
39
|
|
|
39
|
-
manager
|
|
40
|
+
ensure_authenticated(manager)
|
|
40
41
|
|
|
41
42
|
try:
|
|
42
43
|
manager.cloud_actions_manager.delete_env(
|
|
@@ -26,6 +26,7 @@ def environments_list_callback(
|
|
|
26
26
|
|
|
27
27
|
from amsdal_cli.commands.build.services.builder import AppBuilder
|
|
28
28
|
from amsdal_cli.commands.cloud.environments.utils import get_current_env
|
|
29
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
29
30
|
from amsdal_cli.utils.cli_config import CliConfig
|
|
30
31
|
from amsdal_cli.utils.text import rich_error
|
|
31
32
|
from amsdal_cli.utils.text import rich_highlight
|
|
@@ -47,7 +48,7 @@ def environments_list_callback(
|
|
|
47
48
|
|
|
48
49
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
49
50
|
|
|
50
|
-
manager
|
|
51
|
+
ensure_authenticated(manager)
|
|
51
52
|
|
|
52
53
|
try:
|
|
53
54
|
list_response = manager.cloud_actions_manager.list_envs(
|
|
@@ -5,6 +5,7 @@ import typer
|
|
|
5
5
|
from rich import print as rprint
|
|
6
6
|
|
|
7
7
|
from amsdal_cli.commands.cloud.environments.app import environment_sub_app
|
|
8
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
@environment_sub_app.command(name='new, n')
|
|
@@ -36,7 +37,7 @@ def env_add_command(ctx: typer.Context, env_name: str) -> None:
|
|
|
36
37
|
|
|
37
38
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
38
39
|
|
|
39
|
-
manager
|
|
40
|
+
ensure_authenticated(manager)
|
|
40
41
|
|
|
41
42
|
try:
|
|
42
43
|
manager.cloud_actions_manager.create_env(
|
|
@@ -7,6 +7,7 @@ from rich import print as rprint
|
|
|
7
7
|
from typer import Option
|
|
8
8
|
|
|
9
9
|
from amsdal_cli.commands.cloud.external_connections.app import external_connections_sub_app
|
|
10
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
def parse_credentials(credential_options: list[str]) -> dict[str, str]:
|
|
@@ -97,7 +98,7 @@ def connection_add_command(
|
|
|
97
98
|
|
|
98
99
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
99
100
|
|
|
100
|
-
manager
|
|
101
|
+
ensure_authenticated(manager)
|
|
101
102
|
|
|
102
103
|
try:
|
|
103
104
|
manager.cloud_actions_manager.add_external_connection(
|
|
@@ -11,6 +11,7 @@ from typer import Option
|
|
|
11
11
|
|
|
12
12
|
from amsdal_cli.commands.cloud.enums import OutputFormat
|
|
13
13
|
from amsdal_cli.commands.cloud.external_connections.app import external_connections_sub_app
|
|
14
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
def connection_list_command(
|
|
@@ -71,7 +72,7 @@ def connection_list_command(
|
|
|
71
72
|
|
|
72
73
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
73
74
|
|
|
74
|
-
manager
|
|
75
|
+
ensure_authenticated(manager)
|
|
75
76
|
|
|
76
77
|
try:
|
|
77
78
|
list_response = manager.cloud_actions_manager.list_external_connections(
|
|
@@ -7,6 +7,7 @@ from rich import print as rprint
|
|
|
7
7
|
from typer import Option
|
|
8
8
|
|
|
9
9
|
from amsdal_cli.commands.cloud.external_connections.app import external_connections_sub_app
|
|
10
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
@external_connections_sub_app.command(name='remove, rm, r')
|
|
@@ -56,7 +57,7 @@ def connection_remove_command(
|
|
|
56
57
|
|
|
57
58
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
58
59
|
|
|
59
|
-
manager
|
|
60
|
+
ensure_authenticated(manager)
|
|
60
61
|
|
|
61
62
|
try:
|
|
62
63
|
manager.cloud_actions_manager.remove_external_connection(
|
|
@@ -8,6 +8,7 @@ from typer import Option
|
|
|
8
8
|
|
|
9
9
|
from amsdal_cli.commands.cloud.external_connections.app import external_connections_sub_app
|
|
10
10
|
from amsdal_cli.commands.cloud.external_connections.sub_commands.connection_add import parse_credentials
|
|
11
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
@external_connections_sub_app.command(name='update, u')
|
|
@@ -86,7 +87,7 @@ def connection_update_command(
|
|
|
86
87
|
|
|
87
88
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
88
89
|
|
|
89
|
-
manager
|
|
90
|
+
ensure_authenticated(manager)
|
|
90
91
|
|
|
91
92
|
try:
|
|
92
93
|
manager.cloud_actions_manager.update_external_connection(
|
|
@@ -7,6 +7,7 @@ from rich import print as rprint
|
|
|
7
7
|
from typer import Option
|
|
8
8
|
|
|
9
9
|
from amsdal_cli.commands.cloud.secret.app import secret_sub_app
|
|
10
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
@secret_sub_app.command(name='delete, del, d')
|
|
@@ -51,7 +52,7 @@ def secret_delete_command(
|
|
|
51
52
|
|
|
52
53
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
53
54
|
|
|
54
|
-
manager
|
|
55
|
+
ensure_authenticated(manager)
|
|
55
56
|
|
|
56
57
|
try:
|
|
57
58
|
manager.cloud_actions_manager.delete_secret(
|
|
@@ -11,6 +11,7 @@ from typer import Option
|
|
|
11
11
|
|
|
12
12
|
from amsdal_cli.commands.cloud.enums import OutputFormat
|
|
13
13
|
from amsdal_cli.commands.cloud.secret.app import secret_sub_app
|
|
14
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
def secret_list_command(
|
|
@@ -73,7 +74,7 @@ def secret_list_command(
|
|
|
73
74
|
|
|
74
75
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
75
76
|
|
|
76
|
-
manager
|
|
77
|
+
ensure_authenticated(manager)
|
|
77
78
|
|
|
78
79
|
try:
|
|
79
80
|
list_response = manager.cloud_actions_manager.list_secrets(
|
|
@@ -7,6 +7,7 @@ from rich import print as rprint
|
|
|
7
7
|
from typer import Option
|
|
8
8
|
|
|
9
9
|
from amsdal_cli.commands.cloud.secret.app import secret_sub_app
|
|
10
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
@secret_sub_app.command(name='new, n')
|
|
@@ -53,7 +54,7 @@ def secret_add_command(
|
|
|
53
54
|
|
|
54
55
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
55
56
|
|
|
56
|
-
manager
|
|
57
|
+
ensure_authenticated(manager)
|
|
57
58
|
|
|
58
59
|
try:
|
|
59
60
|
manager.cloud_actions_manager.add_secret(
|
|
@@ -9,6 +9,7 @@ from rich import print as rprint
|
|
|
9
9
|
from typer import Option
|
|
10
10
|
|
|
11
11
|
from amsdal_cli.commands.cloud.security.allowlist.app import allowlist_sub_app
|
|
12
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
@allowlist_sub_app.command(name='delete, del, d')
|
|
@@ -73,7 +74,7 @@ def delete_allowlist_ip_command(
|
|
|
73
74
|
|
|
74
75
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
75
76
|
|
|
76
|
-
manager
|
|
77
|
+
ensure_authenticated(manager)
|
|
77
78
|
|
|
78
79
|
try:
|
|
79
80
|
manager.cloud_actions_manager.delete_allowlist_ip(
|
|
@@ -9,6 +9,7 @@ from rich import print as rprint
|
|
|
9
9
|
from typer import Option
|
|
10
10
|
|
|
11
11
|
from amsdal_cli.commands.cloud.security.allowlist.app import allowlist_sub_app
|
|
12
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
@allowlist_sub_app.command(name='new, n')
|
|
@@ -70,7 +71,7 @@ def new_allowlist_ip_command(
|
|
|
70
71
|
|
|
71
72
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
72
73
|
|
|
73
|
-
manager
|
|
74
|
+
ensure_authenticated(manager)
|
|
74
75
|
|
|
75
76
|
try:
|
|
76
77
|
manager.cloud_actions_manager.add_allowlist_ip(
|
|
@@ -7,6 +7,7 @@ from rich import print as rprint
|
|
|
7
7
|
from typer import Option
|
|
8
8
|
|
|
9
9
|
from amsdal_cli.commands.cloud.security.basic_auth.app import basic_auth_sub_app
|
|
10
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
@basic_auth_sub_app.command(name='delete, del, d')
|
|
@@ -50,7 +51,7 @@ def delete_basic_auth_command(
|
|
|
50
51
|
|
|
51
52
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
52
53
|
|
|
53
|
-
manager
|
|
54
|
+
ensure_authenticated(manager)
|
|
54
55
|
|
|
55
56
|
try:
|
|
56
57
|
manager.cloud_actions_manager.delete_basic_auth(
|
|
@@ -12,6 +12,7 @@ from typer import Option
|
|
|
12
12
|
|
|
13
13
|
from amsdal_cli.commands.cloud.enums import OutputFormat
|
|
14
14
|
from amsdal_cli.commands.cloud.security.basic_auth.app import basic_auth_sub_app
|
|
15
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
@basic_auth_sub_app.command(name='new, n')
|
|
@@ -73,7 +74,7 @@ def new_basic_auth_command(
|
|
|
73
74
|
|
|
74
75
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
75
76
|
|
|
76
|
-
manager
|
|
77
|
+
ensure_authenticated(manager)
|
|
77
78
|
|
|
78
79
|
try:
|
|
79
80
|
response = manager.cloud_actions_manager.add_basic_auth(
|
|
@@ -11,6 +11,7 @@ from typer import Option
|
|
|
11
11
|
|
|
12
12
|
from amsdal_cli.commands.cloud.enums import OutputFormat
|
|
13
13
|
from amsdal_cli.commands.cloud.security.basic_auth.app import basic_auth_sub_app
|
|
14
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
@basic_auth_sub_app.command(name='retrieve')
|
|
@@ -56,7 +57,7 @@ def retrieve_basic_auth_command(
|
|
|
56
57
|
|
|
57
58
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
58
59
|
|
|
59
|
-
manager
|
|
60
|
+
ensure_authenticated(manager)
|
|
60
61
|
|
|
61
62
|
try:
|
|
62
63
|
response = manager.cloud_actions_manager.get_basic_auth_credentials(
|
{amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/sub_commands/expose_db.py
RENAMED
|
@@ -8,6 +8,7 @@ from rich import print as rprint
|
|
|
8
8
|
from typer import Option
|
|
9
9
|
|
|
10
10
|
from amsdal_cli.commands.cloud.app import cloud_sub_app
|
|
11
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
@cloud_sub_app.command(name='expose-db, expose_db, edb')
|
|
@@ -53,7 +54,7 @@ def expose_db_command(
|
|
|
53
54
|
|
|
54
55
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
55
56
|
|
|
56
|
-
manager
|
|
57
|
+
ensure_authenticated(manager)
|
|
57
58
|
|
|
58
59
|
try:
|
|
59
60
|
response = manager.cloud_actions_manager.expose_db(
|
{amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/sub_commands/gen_token.py
RENAMED
|
@@ -7,6 +7,7 @@ from rich import print as rprint
|
|
|
7
7
|
from typer import Option
|
|
8
8
|
|
|
9
9
|
from amsdal_cli.commands.cloud.app import cloud_sub_app
|
|
10
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
@cloud_sub_app.command(name='gen-token, gen_token, gt')
|
|
@@ -63,7 +64,7 @@ def gen_token_command(
|
|
|
63
64
|
|
|
64
65
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
65
66
|
|
|
66
|
-
manager
|
|
67
|
+
ensure_authenticated(manager)
|
|
67
68
|
|
|
68
69
|
try:
|
|
69
70
|
list_response = manager.cloud_actions_manager.list_deploys(list_all=False)
|
|
@@ -11,6 +11,7 @@ from typer import Option
|
|
|
11
11
|
|
|
12
12
|
from amsdal_cli.commands.cloud.app import cloud_sub_app
|
|
13
13
|
from amsdal_cli.commands.cloud.enums import OutputFormat
|
|
14
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
@cloud_sub_app.command(name='get-monitoring-info, get_monitoring_info, gmi')
|
|
@@ -57,7 +58,7 @@ def get_monitoring_info(
|
|
|
57
58
|
|
|
58
59
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
59
60
|
|
|
60
|
-
manager
|
|
61
|
+
ensure_authenticated(manager)
|
|
61
62
|
|
|
62
63
|
try:
|
|
63
64
|
response = manager.cloud_actions_manager.get_monitoring_info(
|
|
@@ -13,6 +13,7 @@ from typer import Option
|
|
|
13
13
|
|
|
14
14
|
from amsdal_cli.commands.cloud.app import cloud_sub_app
|
|
15
15
|
from amsdal_cli.commands.cloud.enums import DBType
|
|
16
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
16
17
|
|
|
17
18
|
if typing.TYPE_CHECKING:
|
|
18
19
|
from amsdal.manager import AmsdalManager
|
|
@@ -88,7 +89,7 @@ def sync_db_command(
|
|
|
88
89
|
manager = AmsdalManager()
|
|
89
90
|
|
|
90
91
|
manager.pre_setup()
|
|
91
|
-
manager
|
|
92
|
+
ensure_authenticated(manager)
|
|
92
93
|
|
|
93
94
|
creds: dict[str, str] = _load_credentials(manager, cli_config, env_name)
|
|
94
95
|
_expose_db(manager, cli_config, env_name)
|
{amsdal_cli-0.9.2 → amsdal_cli-0.9.3}/src/amsdal_cli/commands/cloud/sub_commands/tunnel_db.py
RENAMED
|
@@ -8,6 +8,7 @@ from rich import print as rprint
|
|
|
8
8
|
from typer import Option
|
|
9
9
|
|
|
10
10
|
from amsdal_cli.commands.cloud.app import cloud_sub_app
|
|
11
|
+
from amsdal_cli.utils.auth import ensure_authenticated
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
def _generate_temp_ssh_key() -> tuple[bytes, bytes]:
|
|
@@ -84,7 +85,7 @@ def tunnel_db_command(
|
|
|
84
85
|
|
|
85
86
|
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
86
87
|
|
|
87
|
-
manager
|
|
88
|
+
ensure_authenticated(manager)
|
|
88
89
|
|
|
89
90
|
private_pem, public_key = _generate_temp_ssh_key()
|
|
90
91
|
|