womm-cli 5.0.0__tar.gz → 5.1.1__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.
- {womm_cli-5.0.0 → womm_cli-5.1.1}/PKG-INFO +1 -1
- womm_cli-5.1.1/TODO.md +98 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/pyproject.toml +1 -1
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/_version.py +1 -1
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/pyproject.toml.jinja +6 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if with_ci %}.github{% endif %}/workflows/ci.yml.jinja +2 -2
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/cli.py +3 -1
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/core/doctor.py +7 -5
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/core/path.py +63 -20
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/project/create.py +8 -5
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/project/setup.py +83 -47
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/project/template.py +25 -11
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/system/context/__init__.py +9 -3
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/system/context/backup.py +41 -17
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/system/context/inventory.py +14 -7
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/system/context/registration.py +23 -11
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/system/deps.py +21 -10
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/system/system.py +17 -10
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/project/create_interface.py +1 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/project/manager_interface.py +3 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/project/setup_interface.py +35 -11
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/project/copier_project_creation_service.py +3 -2
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/project/env_utils.py +62 -2
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/project/python_environment_service.py +33 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/__init__.py +2 -5
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/common/interactive_menu.py +12 -4
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/common/prompts.py +4 -2
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/project/__init__.py +2 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/project/create/create_completion_summaries.py +7 -1
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/project/project_wizard.py +11 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/project/setup/setup_completion_summaries.py +62 -1
- {womm_cli-5.0.0 → womm_cli-5.1.1}/uv.lock +1 -1
- womm_cli-5.0.0/TODO.md +0 -95
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.github/dependabot.yml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.github/workflows/00-install-deps.yml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.github/workflows/01-ci.yml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.github/workflows/02-tag-sync.yml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.github/workflows/03-publish.yml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.github/workflows/04-docs.yml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.github/workflows/README.md +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.gitignore +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.markdownlint.yaml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.pre-commit-config.yaml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.python-version +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.scripts/dev/check_merge_conflict.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.scripts/dev/check_toml.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.scripts/dev/check_yaml.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.scripts/dev/generate_architecture_graph.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/.scripts/dev/update_version.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/AGENTS.md +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/LICENSE +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/README.md +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/cliff.toml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/mkdocs.yml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/requirements-dev.in +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/requirements.in +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/__main__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/meta/copier.yml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/meta/template/README.md.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/meta/template/copier.yml.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/meta/template/template/.gitkeep +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/copier.yml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/.gitignore.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/.nvmrc.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/.prettierignore.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/README.md.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/biome.json.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/eslint.config.mjs.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/index.html.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/package.json.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/prettier.config.mjs.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/src/App.jsx.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/src/App.tsx.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/src/App.vue.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/src/index.jsx.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/src/index.tsx.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/src/main.js.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/src/main.ts.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/tsconfig.json.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/vite.config.mjs.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/{% if with_ci %}.github{% endif %}/workflows/ci.yml.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/{% if with_tests %}tests{% endif %}/smoke.test.js.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/{% if with_tests %}tests{% endif %}/smoke.test.ts.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/{% if with_vscode %}.vscode{% endif %}/extensions.json.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/javascript/template/{% if with_vscode %}.vscode{% endif %}/settings.json.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/copier.yml +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/.gitignore.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/.pre-commit-config.yaml.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/.python-version.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/README.md.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if framework == 'django' %}manage.py{% endif %}.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/__init__.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/asgi.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/core/__init__.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/core/apps.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/core/models.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/core/views.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/py.typed +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/settings.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/urls.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/wsgi.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/__init__.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/asgi.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/core/__init__.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/core/apps.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/core/models.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/core/views.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/py.typed +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/settings.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/urls.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/wsgi.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if with_tests %}tests{% endif %}/test_smoke.py.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if with_vscode %}.vscode{% endif %}/extensions.json.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/assets/copier/official/python/template/{% if with_vscode %}.vscode{% endif %}/settings.json.jinja +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/bin/refresh_env.cmd +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/core/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/project/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/commands/system/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/exceptions/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/exceptions/common/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/exceptions/common/command_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/exceptions/common/file_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/exceptions/common/security_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/exceptions/common/validation_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/exceptions/context/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/exceptions/context/context_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/exceptions/project/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/exceptions/project/project_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/exceptions/system/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/exceptions/system/system_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/context/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/context/menu_interface.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/context/registry_interface.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/context/script_detector_interface.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/context/script_registrar.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/core/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/core/doctor_interface.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/dependencies/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/dependencies/deps_interface.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/project/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/project/detection_interface.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/project/template_store_interface.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/system/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/system/detector_interface.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/system/environment_interface.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/interfaces/system/path_interface.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/common/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/common/base_validation_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/common/command_runner_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/common/file_scanner_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/common/security_validator_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/context/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/context/backup_entries.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/context/parameters.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/context/registry_paths.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/context/registry_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/context/validation_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/dependencies/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/dependencies/probe.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/project/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/project/destination_guard.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/project/detection_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/project/javascript_environment_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/project/setup_profile_resolver.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/project/template_store_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/project/validation_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/system/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/system/detector_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/system/environment_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/services/system/path_service.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/context/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/context/context_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/context/context_file_types_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/context/context_limits_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/context/context_paths_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/context/context_types_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/context/script_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/dependencies/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/dependencies/runtime_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/dependencies/runtime_package_manager_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/logging_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/project/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/project/project_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/project/project_structure_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/project/python_project_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/security/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/security/security_patterns_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/system/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/system/system_detector_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/configs/system/system_environment_config.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/models/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/models/template_source.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/paths.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/results/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/results/base.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/results/command_results.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/results/context_results.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/results/dependency_results.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/results/doctor_results.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/results/file_results.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/results/project_results.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/results/security_results.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/results/system_results.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/results/template_results.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/shared/runtime.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/common/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/common/logging.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/context/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/context/display.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/context/menu_display.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/context/wizard.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/project/templates/template_store_display.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/system/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/system/display.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/ui/system/path_display.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/common/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/common/file_scanner_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/common/path_resolver_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/common/safe_fs_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/context/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/context/core_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/context/icon_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/project/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/project/asset_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/project/core_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/project/file_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/project/platform_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/project/validation_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/security/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/security/security_validation_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/system/__init__.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/system/detector_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/system/environment_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/src/womm/utils/system/path_utils.py +0 -0
- {womm_cli-5.0.0 → womm_cli-5.1.1}/uv.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: womm-cli
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.1.1
|
|
4
4
|
Summary: Universal development tools for Python and JavaScript - Automatic installation, cross-platform configuration, global commands
|
|
5
5
|
Project-URL: Homepage, https://github.com/neuraaak/WOMM
|
|
6
6
|
Project-URL: Documentation, https://neuraaak.github.io/WOMM/
|
womm_cli-5.1.1/TODO.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Backlog consolidé — WOMM
|
|
2
|
+
|
|
3
|
+
> État vérifié le **2026-11-25** sur `main` (`6cb0c80`, release 5.1.0).
|
|
4
|
+
> Vue actionnable de la mémoire du projet :
|
|
5
|
+
> `~/.agents/memory/projects/e-dev-python-womm/current-backlog.md`.
|
|
6
|
+
> La numérotation des lots est conservée pour les références existantes ;
|
|
7
|
+
> les sections et items terminés ont été retirés.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Priorité 3 — finaliser la migration ezplog 2.x
|
|
12
|
+
|
|
13
|
+
`EzplBridge` est supprimé, les API publiques d'ezplog 2.x sont adoptées et
|
|
14
|
+
l'accès temporaire à la console Rich est isolé dans `WommPrinter.console`.
|
|
15
|
+
Il ne reste que l'attente amont.
|
|
16
|
+
|
|
17
|
+
- [ ] Supprimer `WommPrinter.console` lorsque ezplog exposera un accesseur
|
|
18
|
+
public équivalent. **Bloqué en amont** : revérifié sur ezplog 2.3.4 le
|
|
19
|
+
2026-11-23, aucun accesseur public de console n'existe encore, et
|
|
20
|
+
l'adaptateur a 19 appelants de production.
|
|
21
|
+
|
|
22
|
+
**Critère de sortie du lot :** l'intégration ne duplique aucune capacité
|
|
23
|
+
publique d'ezplog 2.x et n'accède à ses attributs privés qu'au travers du
|
|
24
|
+
seul adaptateur temporaire documenté.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Priorité 4 — distribution, release et documentation
|
|
29
|
+
|
|
30
|
+
> **Canal arrêté le 2026-10-29 : `uv tool install` ou pip, et rien d'autre.**
|
|
31
|
+
> Le canal standalone (Inno Setup) et le dispatcher `install.ps1` sont
|
|
32
|
+
> abandonnés : un script maison ne ferait que relayer `uv tool install`,
|
|
33
|
+
> tout en créant une surface d'attaque et un jumeau à maintenir pour les
|
|
34
|
+
> autres OS.
|
|
35
|
+
|
|
36
|
+
### 4.5 Publication PyPI
|
|
37
|
+
|
|
38
|
+
> **Nommage arrêté le 2026-10-29 :** le projet reste `womm` partout — dépôt,
|
|
39
|
+
> paquet importable, commande, données `~/.womm`. Seul le nom de
|
|
40
|
+
> distribution est `womm-cli`, parce que `womm` est pris sur PyPI.
|
|
41
|
+
|
|
42
|
+
`womm-cli` 5.1.0 est publié par le Trusted Publisher, sans jeton ; la doc
|
|
43
|
+
versionnée (mike) est déployée à chaque release et la racine de `gh-pages`
|
|
44
|
+
ne contient plus que ce que mike gère. `works-on-my-machine` 3.2.4 est
|
|
45
|
+
publié avec le statut *Inactive*.
|
|
46
|
+
|
|
47
|
+
- [ ] Archiver `works-on-my-machine` sur PyPI. **Manuel et irréversible** :
|
|
48
|
+
dernière étape, à faire depuis l'interface PyPI.
|
|
49
|
+
|
|
50
|
+
**Critère de sortie du lot :** l'ancien nom est archivé et ne propose plus
|
|
51
|
+
de mise à jour silencieuse.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Priorité 5 — tester les services qui écrivent sur la machine
|
|
56
|
+
|
|
57
|
+
Couverture mesurée le 2026-11-25 (globale : 71,33 %).
|
|
58
|
+
|
|
59
|
+
- [ ] `services/system/path_service.py` — **20 %**. Écrit le PATH
|
|
60
|
+
utilisateur : un défaut y fait perdre des données. Priorité de ce lot.
|
|
61
|
+
- [ ] `services/context/registry_service.py` — **9 %**. Écrit dans le
|
|
62
|
+
registre Windows (menu contextuel).
|
|
63
|
+
- [ ] `services/context/validation_service.py` — **10 %**.
|
|
64
|
+
|
|
65
|
+
**Critère de sortie du lot :** chaque écriture (PATH, registre) a un test
|
|
66
|
+
qui vérifie ce qui est écrit, et un test du chemin d'échec qui vérifie
|
|
67
|
+
que rien n'est perdu.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Priorité 6 — corrections qui changent un comportement
|
|
72
|
+
|
|
73
|
+
- [ ] `ui/context/wizard.py` (l. 105 et l. 394, `FIXME`) :
|
|
74
|
+
`PathValidator.validate()` renvoie `None`, donc le contrôle d'extension
|
|
75
|
+
des scripts n'est jamais appliqué. Le réparer refuse des scripts
|
|
76
|
+
aujourd'hui acceptés : **décision du user**, puis test.
|
|
77
|
+
- [ ] Essayer une fois `womm setup python -I` : la question VS Code
|
|
78
|
+
ajoutée en 5.1.0 n'a pas de test automatique.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Décisions assumées, à ne pas rouvrir sans raison
|
|
83
|
+
|
|
84
|
+
- `--setup` sur un projet pip qui demande un Python plus récent que celui de
|
|
85
|
+
WOMM : pip refuse l'installation avec un message clair, affiché en
|
|
86
|
+
avertissement. Non traité (2026-11-24) ; avec uv, le cas n'existe pas.
|
|
87
|
+
- `setup python --setup-git-hooks` lance le `pre-commit` du `.venv` du
|
|
88
|
+
projet : même modèle de confiance que le `pip` du venv. Jugé non bloquant.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Ordre de reprise recommandé
|
|
93
|
+
|
|
94
|
+
1. Tests de `path_service` (priorité 5) — seul risque de perte de données.
|
|
95
|
+
2. Tests du registre `context`, puis la décision sur le `FIXME` du wizard.
|
|
96
|
+
3. Archiver `works-on-my-machine` sur PyPI.
|
|
97
|
+
4. Reprendre la suppression de `WommPrinter.console` dès qu'ezplog expose un
|
|
98
|
+
accesseur public.
|
|
@@ -14,7 +14,7 @@ build-backend = "hatchling.build"
|
|
|
14
14
|
|
|
15
15
|
[project]
|
|
16
16
|
name = "womm-cli"
|
|
17
|
-
version = "5.
|
|
17
|
+
version = "5.1.1"
|
|
18
18
|
description = "Universal development tools for Python and JavaScript - Automatic installation, cross-platform configuration, global commands"
|
|
19
19
|
readme = "README.md"
|
|
20
20
|
license = { text = "MIT" }
|
|
@@ -57,6 +57,12 @@ packages = ["src/{{ package_name }}"]
|
|
|
57
57
|
{%- else %}
|
|
58
58
|
packages = ["{{ package_name }}"]
|
|
59
59
|
{%- endif %}
|
|
60
|
+
{%- if use_uv %}
|
|
61
|
+
|
|
62
|
+
[tool.uv]
|
|
63
|
+
# uv builds and installs this project into its environment.
|
|
64
|
+
package = true
|
|
65
|
+
{%- endif %}
|
|
60
66
|
|
|
61
67
|
[tool.ruff]
|
|
62
68
|
target-version = "py{{ python_version | replace('.', '') }}"
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
19
19
|
{%- if use_uv %}
|
|
20
20
|
- name: Set up uv
|
|
21
|
-
uses: astral-sh/setup-uv@
|
|
21
|
+
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
22
22
|
with:
|
|
23
23
|
python-version: {% raw %}${{ matrix.python-version }}{% endraw %}
|
|
24
24
|
enable-cache: true
|
|
@@ -46,7 +46,7 @@ jobs:
|
|
|
46
46
|
run: uv build
|
|
47
47
|
{%- else %}
|
|
48
48
|
- name: Set up Python
|
|
49
|
-
uses: actions/setup-python@
|
|
49
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
50
50
|
with:
|
|
51
51
|
python-version: {% raw %}${{ matrix.python-version }}{% endraw %}
|
|
52
52
|
- name: Install dependencies
|
|
@@ -23,7 +23,6 @@ from ._version import __version__
|
|
|
23
23
|
from .commands.core import doctor_cmd, path_group
|
|
24
24
|
from .commands.project import create_command, setup_group, template_group
|
|
25
25
|
from .commands.system import context_group, deps_group, system_group
|
|
26
|
-
from .ui.common import ezprinter
|
|
27
26
|
|
|
28
27
|
# ///////////////////////////////////////////////////////////////
|
|
29
28
|
# CONSOLE CONFIGURATION
|
|
@@ -57,6 +56,9 @@ _configure_windows_console()
|
|
|
57
56
|
def womm(ctx: click.Context) -> None:
|
|
58
57
|
"""🛠️ Works On My Machine - Universal development tools."""
|
|
59
58
|
if ctx.invoked_subcommand is None:
|
|
59
|
+
# Imported here: the logger setup must not slow down `--version`/`-h`.
|
|
60
|
+
from .ui.common import ezprinter
|
|
61
|
+
|
|
60
62
|
ezprinter.console.print(r"""
|
|
61
63
|
================================================================================
|
|
62
64
|
__ _____ __ __ __ __
|
|
@@ -18,12 +18,8 @@ from __future__ import annotations
|
|
|
18
18
|
# ///////////////////////////////////////////////////////////////
|
|
19
19
|
# Third-party imports
|
|
20
20
|
import click
|
|
21
|
-
from ezplog import LogLevel
|
|
22
21
|
|
|
23
|
-
#
|
|
24
|
-
from ...interfaces import DoctorInterface
|
|
25
|
-
from ...ui.common import ezpl, ezprinter
|
|
26
|
-
from ...ui.system import render_doctor_result
|
|
22
|
+
# Heavy imports stay in the callbacks: `womm -h` must not load them.
|
|
27
23
|
|
|
28
24
|
# ///////////////////////////////////////////////////////////////
|
|
29
25
|
# COMMAND
|
|
@@ -40,6 +36,12 @@ from ...ui.system import render_doctor_result
|
|
|
40
36
|
)
|
|
41
37
|
def doctor_cmd(verbose: bool) -> None:
|
|
42
38
|
"""🩺 Report the installed runtime without changing user configuration."""
|
|
39
|
+
from ezplog import LogLevel
|
|
40
|
+
|
|
41
|
+
from ...interfaces import DoctorInterface
|
|
42
|
+
from ...ui.common import ezpl, ezprinter
|
|
43
|
+
from ...ui.system import render_doctor_result
|
|
44
|
+
|
|
43
45
|
if verbose:
|
|
44
46
|
ezpl.set_level(LogLevel.DEBUG.label)
|
|
45
47
|
|
|
@@ -14,26 +14,14 @@ from __future__ import annotations
|
|
|
14
14
|
# Standard library imports
|
|
15
15
|
import sys
|
|
16
16
|
from pathlib import Path
|
|
17
|
+
from typing import TYPE_CHECKING
|
|
17
18
|
|
|
18
19
|
# Third-party imports
|
|
19
20
|
import click
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
from ...interfaces import SystemPathInterface
|
|
24
|
-
from ...ui.common import (
|
|
25
|
-
InteractiveMenu,
|
|
26
|
-
ezpl,
|
|
27
|
-
ezprinter,
|
|
28
|
-
format_backup_item,
|
|
29
|
-
)
|
|
30
|
-
from ...ui.system import (
|
|
31
|
-
render_path_backup_content_result,
|
|
32
|
-
render_path_backup_list_result,
|
|
33
|
-
render_path_backup_result,
|
|
34
|
-
render_path_entries_result,
|
|
35
|
-
render_path_operation_result,
|
|
36
|
-
)
|
|
21
|
+
|
|
22
|
+
# Heavy imports stay in the callbacks: `womm -h` must not load them.
|
|
23
|
+
if TYPE_CHECKING:
|
|
24
|
+
from ...interfaces import SystemPathInterface
|
|
37
25
|
|
|
38
26
|
# ///////////////////////////////////////////////////////////////
|
|
39
27
|
# CONSTANTS
|
|
@@ -76,6 +64,12 @@ def path_backup_group() -> None:
|
|
|
76
64
|
)
|
|
77
65
|
def path_list(verbose: bool) -> None:
|
|
78
66
|
"""📋 List the entries of your current PATH."""
|
|
67
|
+
from ezplog import LogLevel
|
|
68
|
+
|
|
69
|
+
from ...interfaces import SystemPathInterface
|
|
70
|
+
from ...ui.common import ezpl, ezprinter
|
|
71
|
+
from ...ui.system import render_path_entries_result
|
|
72
|
+
|
|
79
73
|
if verbose:
|
|
80
74
|
ezpl.set_level(LogLevel.DEBUG.label)
|
|
81
75
|
|
|
@@ -91,7 +85,7 @@ def path_list(verbose: bool) -> None:
|
|
|
91
85
|
# ///////////////////////////////////////////////////////////////
|
|
92
86
|
|
|
93
87
|
|
|
94
|
-
@path_group.command("add")
|
|
88
|
+
@path_group.command("add", no_args_is_help=True)
|
|
95
89
|
@click.help_option("-h", "--help")
|
|
96
90
|
@click.argument("directory", type=click.Path(path_type=Path))
|
|
97
91
|
@click.option(
|
|
@@ -106,6 +100,12 @@ def path_add(directory: Path, verbose: bool) -> None:
|
|
|
106
100
|
DIRECTORY must exist and hold at least one executable. The current PATH
|
|
107
101
|
is backed up before the change, so 'backup restore' undoes it.
|
|
108
102
|
"""
|
|
103
|
+
from ezplog import LogLevel
|
|
104
|
+
|
|
105
|
+
from ...interfaces import SystemPathInterface
|
|
106
|
+
from ...ui.common import ezpl, ezprinter
|
|
107
|
+
from ...ui.system import render_path_operation_result
|
|
108
|
+
|
|
109
109
|
if verbose:
|
|
110
110
|
ezpl.set_level(LogLevel.DEBUG.label)
|
|
111
111
|
|
|
@@ -116,7 +116,7 @@ def path_add(directory: Path, verbose: bool) -> None:
|
|
|
116
116
|
sys.exit(1)
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
@path_group.command("remove")
|
|
119
|
+
@path_group.command("remove", no_args_is_help=True)
|
|
120
120
|
@click.help_option("-h", "--help")
|
|
121
121
|
@click.argument("directory", type=click.Path(path_type=Path))
|
|
122
122
|
@click.option(
|
|
@@ -132,6 +132,12 @@ def path_remove(directory: Path, verbose: bool) -> None:
|
|
|
132
132
|
tool is the usual reason to run this. The current PATH is backed up
|
|
133
133
|
before the change.
|
|
134
134
|
"""
|
|
135
|
+
from ezplog import LogLevel
|
|
136
|
+
|
|
137
|
+
from ...interfaces import SystemPathInterface
|
|
138
|
+
from ...ui.common import ezpl, ezprinter
|
|
139
|
+
from ...ui.system import render_path_operation_result
|
|
140
|
+
|
|
135
141
|
if verbose:
|
|
136
142
|
ezpl.set_level(LogLevel.DEBUG.label)
|
|
137
143
|
|
|
@@ -157,6 +163,12 @@ def path_remove(directory: Path, verbose: bool) -> None:
|
|
|
157
163
|
)
|
|
158
164
|
def path_backup_create(verbose: bool) -> None:
|
|
159
165
|
"""💾 Create a backup of your current PATH."""
|
|
166
|
+
from ezplog import LogLevel
|
|
167
|
+
|
|
168
|
+
from ...interfaces import SystemPathInterface
|
|
169
|
+
from ...ui.common import ezpl, ezprinter
|
|
170
|
+
from ...ui.system import render_path_backup_result
|
|
171
|
+
|
|
160
172
|
if verbose:
|
|
161
173
|
ezpl.set_level(LogLevel.DEBUG.label)
|
|
162
174
|
|
|
@@ -177,6 +189,12 @@ def path_backup_create(verbose: bool) -> None:
|
|
|
177
189
|
)
|
|
178
190
|
def path_backup_list(verbose: bool) -> None:
|
|
179
191
|
"""📋 List available PATH backups."""
|
|
192
|
+
from ezplog import LogLevel
|
|
193
|
+
|
|
194
|
+
from ...interfaces import SystemPathInterface
|
|
195
|
+
from ...ui.common import ezpl, ezprinter
|
|
196
|
+
from ...ui.system import render_path_backup_list_result
|
|
197
|
+
|
|
180
198
|
if verbose:
|
|
181
199
|
ezpl.set_level(LogLevel.DEBUG.label)
|
|
182
200
|
|
|
@@ -187,7 +205,7 @@ def path_backup_list(verbose: bool) -> None:
|
|
|
187
205
|
sys.exit(1)
|
|
188
206
|
|
|
189
207
|
|
|
190
|
-
@path_backup_group.command("show")
|
|
208
|
+
@path_backup_group.command("show", no_args_is_help=True)
|
|
191
209
|
@click.help_option("-h", "--help")
|
|
192
210
|
@click.argument("name")
|
|
193
211
|
@click.option(
|
|
@@ -198,6 +216,12 @@ def path_backup_list(verbose: bool) -> None:
|
|
|
198
216
|
)
|
|
199
217
|
def path_backup_show(name: str, verbose: bool) -> None:
|
|
200
218
|
"""🔍 Show the content of a PATH backup (file name, not a path)."""
|
|
219
|
+
from ezplog import LogLevel
|
|
220
|
+
|
|
221
|
+
from ...interfaces import SystemPathInterface
|
|
222
|
+
from ...ui.common import ezpl, ezprinter
|
|
223
|
+
from ...ui.system import render_path_backup_content_result
|
|
224
|
+
|
|
201
225
|
if verbose:
|
|
202
226
|
ezpl.set_level(LogLevel.DEBUG.label)
|
|
203
227
|
|
|
@@ -223,6 +247,11 @@ def path_backup_restore(name: str | None, verbose: bool) -> None:
|
|
|
223
247
|
NAME is a bare backup file name, as listed by 'backup list'. Without
|
|
224
248
|
NAME, a backup is chosen interactively.
|
|
225
249
|
"""
|
|
250
|
+
from ezplog import LogLevel
|
|
251
|
+
|
|
252
|
+
from ...interfaces import SystemPathInterface
|
|
253
|
+
from ...ui.common import ezpl, ezprinter
|
|
254
|
+
|
|
226
255
|
if verbose:
|
|
227
256
|
ezpl.set_level(LogLevel.DEBUG.label)
|
|
228
257
|
|
|
@@ -241,6 +270,8 @@ def path_backup_restore(name: str | None, verbose: bool) -> None:
|
|
|
241
270
|
|
|
242
271
|
def _confirm_restore() -> bool:
|
|
243
272
|
"""Ask for an explicit confirmation before writing the user's PATH."""
|
|
273
|
+
from ...ui.common import InteractiveMenu
|
|
274
|
+
|
|
244
275
|
confirm_menu = InteractiveMenu(title="Confirm Restoration", border_style="yellow")
|
|
245
276
|
return confirm_menu.confirm_action("Proceed with restoration?", default_yes=True)
|
|
246
277
|
|
|
@@ -253,6 +284,12 @@ def _restore_named_backup(manager: SystemPathInterface, name: str) -> None:
|
|
|
253
284
|
the readability check runs first so an unusable name stops before the
|
|
254
285
|
confirmation prompt.
|
|
255
286
|
"""
|
|
287
|
+
from ...ui.common import ezprinter
|
|
288
|
+
from ...ui.system import (
|
|
289
|
+
render_path_backup_content_result,
|
|
290
|
+
render_path_operation_result,
|
|
291
|
+
)
|
|
292
|
+
|
|
256
293
|
content = manager.read_backup(name)
|
|
257
294
|
if not content.success:
|
|
258
295
|
render_path_backup_content_result(content)
|
|
@@ -273,6 +310,12 @@ def _restore_named_backup(manager: SystemPathInterface, name: str) -> None:
|
|
|
273
310
|
|
|
274
311
|
def _run_path_restore(manager: SystemPathInterface) -> None:
|
|
275
312
|
"""Interactively select a PATH backup and restore it."""
|
|
313
|
+
from ...ui.common import InteractiveMenu, ezprinter, format_backup_item
|
|
314
|
+
from ...ui.system import (
|
|
315
|
+
render_path_backup_list_result,
|
|
316
|
+
render_path_operation_result,
|
|
317
|
+
)
|
|
318
|
+
|
|
276
319
|
list_result = manager.list_backups()
|
|
277
320
|
if not list_result.success:
|
|
278
321
|
render_path_backup_list_result(list_result)
|
|
@@ -23,9 +23,7 @@ from pathlib import Path
|
|
|
23
23
|
# Third-party imports
|
|
24
24
|
import click
|
|
25
25
|
|
|
26
|
-
#
|
|
27
|
-
from ...interfaces.project.create_interface import ProjectCreateInterface
|
|
28
|
-
from ...ui.project import render_project_creation_result
|
|
26
|
+
# Heavy imports stay in the callbacks: `womm -h` must not load them.
|
|
29
27
|
|
|
30
28
|
# ///////////////////////////////////////////////////////////////
|
|
31
29
|
# HELPERS
|
|
@@ -63,7 +61,7 @@ def parse_data_options(values: tuple[str, ...]) -> dict[str, str]:
|
|
|
63
61
|
# ///////////////////////////////////////////////////////////////
|
|
64
62
|
|
|
65
63
|
|
|
66
|
-
@click.command("create")
|
|
64
|
+
@click.command("create", no_args_is_help=True)
|
|
67
65
|
@click.help_option("-h", "--help")
|
|
68
66
|
@click.argument("template")
|
|
69
67
|
@click.argument("destination", type=click.Path(path_type=Path))
|
|
@@ -106,6 +104,9 @@ def create_command(
|
|
|
106
104
|
verbose: bool,
|
|
107
105
|
) -> None:
|
|
108
106
|
"""Create a project from a catalog template."""
|
|
107
|
+
from ...interfaces.project.create_interface import ProjectCreateInterface
|
|
108
|
+
from ...ui.project import render_project_creation_result
|
|
109
|
+
|
|
109
110
|
answers = parse_data_options(data)
|
|
110
111
|
result = ProjectCreateInterface().create_project(
|
|
111
112
|
template=template,
|
|
@@ -116,7 +117,9 @@ def create_command(
|
|
|
116
117
|
defaults=defaults,
|
|
117
118
|
setup=setup,
|
|
118
119
|
)
|
|
119
|
-
render_project_creation_result(
|
|
120
|
+
render_project_creation_result(
|
|
121
|
+
result, verbose=verbose, suggest_setup=not (setup or pretend)
|
|
122
|
+
)
|
|
120
123
|
if not result.success:
|
|
121
124
|
raise SystemExit(1)
|
|
122
125
|
|
|
@@ -19,17 +19,14 @@ from __future__ import annotations
|
|
|
19
19
|
# Standard library imports
|
|
20
20
|
import sys
|
|
21
21
|
from pathlib import Path
|
|
22
|
-
from typing import Any, cast
|
|
22
|
+
from typing import TYPE_CHECKING, Any, cast
|
|
23
23
|
|
|
24
24
|
# Third-party imports
|
|
25
25
|
import click
|
|
26
|
-
from ezplog import LogLevel
|
|
27
26
|
|
|
28
|
-
#
|
|
29
|
-
|
|
30
|
-
from ...
|
|
31
|
-
from ...ui.common import ezpl, ezprinter
|
|
32
|
-
from ...ui.project import ProjectWizard, print_project_setup_result
|
|
27
|
+
# Heavy imports stay in the callbacks: `womm -h` must not load them.
|
|
28
|
+
if TYPE_CHECKING:
|
|
29
|
+
from ...interfaces import ProjectManagerInterface
|
|
33
30
|
|
|
34
31
|
# ///////////////////////////////////////////////////////////////
|
|
35
32
|
# COMMAND GROUPS
|
|
@@ -49,6 +46,10 @@ def setup_group(ctx: click.Context, verbose: bool) -> None:
|
|
|
49
46
|
"""🔧 Configure existing projects with development tools."""
|
|
50
47
|
# Configure verbose mode if requested
|
|
51
48
|
if verbose:
|
|
49
|
+
from ezplog import LogLevel
|
|
50
|
+
|
|
51
|
+
from ...ui.common import ezpl
|
|
52
|
+
|
|
52
53
|
ezpl.set_level(LogLevel.DEBUG.label)
|
|
53
54
|
|
|
54
55
|
if ctx.invoked_subcommand is None:
|
|
@@ -87,7 +88,16 @@ def setup_detect(
|
|
|
87
88
|
interactive: bool,
|
|
88
89
|
verbose: bool,
|
|
89
90
|
) -> None:
|
|
90
|
-
"""🔍
|
|
91
|
+
"""🔍 Detect the project type and show the setup steps available for it.
|
|
92
|
+
|
|
93
|
+
Use -I to run the guided setup on the detected type.
|
|
94
|
+
"""
|
|
95
|
+
from ezplog import LogLevel
|
|
96
|
+
|
|
97
|
+
from ...interfaces import ProjectManagerInterface
|
|
98
|
+
from ...services.project.setup_profile_resolver import list_setup_identifiers
|
|
99
|
+
from ...ui.common import ezpl, ezprinter
|
|
100
|
+
|
|
91
101
|
# Configure verbose mode if requested
|
|
92
102
|
if verbose:
|
|
93
103
|
ezpl.set_level(LogLevel.DEBUG.label)
|
|
@@ -179,6 +189,11 @@ def setup_detect(
|
|
|
179
189
|
is_flag=True,
|
|
180
190
|
help="Initialize the Git repository and install its pre-commit hooks",
|
|
181
191
|
)
|
|
192
|
+
@click.option(
|
|
193
|
+
"--setup-vscode",
|
|
194
|
+
is_flag=True,
|
|
195
|
+
help="Write the VS Code settings and recommended extensions",
|
|
196
|
+
)
|
|
182
197
|
@click.option(
|
|
183
198
|
"-v",
|
|
184
199
|
"--verbose",
|
|
@@ -191,9 +206,19 @@ def setup_python(
|
|
|
191
206
|
virtual_env: bool,
|
|
192
207
|
install_deps: bool,
|
|
193
208
|
setup_git_hooks: bool,
|
|
209
|
+
setup_vscode: bool,
|
|
194
210
|
verbose: bool,
|
|
195
211
|
) -> None:
|
|
196
|
-
"""🐍 Configure existing Python project with development environment.
|
|
212
|
+
"""🐍 Configure existing Python project with development environment.
|
|
213
|
+
|
|
214
|
+
Every step is opt-in: pass the flags of the steps to run. Without any,
|
|
215
|
+
the project is only checked and nothing is written.
|
|
216
|
+
"""
|
|
217
|
+
from ezplog import LogLevel
|
|
218
|
+
|
|
219
|
+
from ...interfaces import ProjectManagerInterface
|
|
220
|
+
from ...ui.common import ezpl, ezprinter
|
|
221
|
+
|
|
197
222
|
# Configure verbose mode if requested
|
|
198
223
|
if verbose:
|
|
199
224
|
ezpl.set_level(LogLevel.DEBUG.label)
|
|
@@ -214,6 +239,7 @@ def setup_python(
|
|
|
214
239
|
"virtual_env": virtual_env,
|
|
215
240
|
"install_deps": install_deps,
|
|
216
241
|
"setup_git_hooks": setup_git_hooks,
|
|
242
|
+
"setup_vscode": setup_vscode,
|
|
217
243
|
}
|
|
218
244
|
success = _run_direct_setup(project_manager, "python", project_path, options)
|
|
219
245
|
if not success:
|
|
@@ -263,6 +289,11 @@ def setup_python(
|
|
|
263
289
|
is_flag=True,
|
|
264
290
|
help="Initialize the Git repository",
|
|
265
291
|
)
|
|
292
|
+
@click.option(
|
|
293
|
+
"--setup-vscode",
|
|
294
|
+
is_flag=True,
|
|
295
|
+
help="Write the VS Code settings and recommended extensions",
|
|
296
|
+
)
|
|
266
297
|
@click.option(
|
|
267
298
|
"-v",
|
|
268
299
|
"--verbose",
|
|
@@ -275,9 +306,19 @@ def setup_javascript(
|
|
|
275
306
|
interactive: bool,
|
|
276
307
|
install_deps: bool,
|
|
277
308
|
setup_git_hooks: bool,
|
|
309
|
+
setup_vscode: bool,
|
|
278
310
|
verbose: bool,
|
|
279
311
|
) -> None:
|
|
280
|
-
"""🟨 Configure existing JavaScript project with development environment.
|
|
312
|
+
"""🟨 Configure existing JavaScript project with development environment.
|
|
313
|
+
|
|
314
|
+
Every step is opt-in: pass the flags of the steps to run. Without any,
|
|
315
|
+
the project is only checked and nothing is written.
|
|
316
|
+
"""
|
|
317
|
+
from ezplog import LogLevel
|
|
318
|
+
|
|
319
|
+
from ...interfaces import ProjectManagerInterface
|
|
320
|
+
from ...ui.common import ezpl, ezprinter
|
|
321
|
+
|
|
281
322
|
# Configure verbose mode if requested
|
|
282
323
|
if verbose:
|
|
283
324
|
ezpl.set_level(LogLevel.DEBUG.label)
|
|
@@ -319,6 +360,7 @@ def setup_javascript(
|
|
|
319
360
|
options = {
|
|
320
361
|
"install_deps": install_deps,
|
|
321
362
|
"setup_git_hooks": setup_git_hooks,
|
|
363
|
+
"setup_vscode": setup_vscode,
|
|
322
364
|
}
|
|
323
365
|
success = _run_direct_setup(
|
|
324
366
|
project_manager, project_type_value, project_path, options
|
|
@@ -341,6 +383,9 @@ def _run_interactive_setup(
|
|
|
341
383
|
project_manager: ProjectManagerInterface, project_type: str, project_path: Path
|
|
342
384
|
) -> bool:
|
|
343
385
|
"""Run interactive project setup."""
|
|
386
|
+
from ...ui.common import ezprinter
|
|
387
|
+
from ...ui.project import ProjectWizard
|
|
388
|
+
|
|
344
389
|
# Get setup configuration
|
|
345
390
|
config = ProjectWizard.run_interactive_setup_for_existing_project(
|
|
346
391
|
project_type, project_path
|
|
@@ -355,28 +400,7 @@ def _run_interactive_setup(
|
|
|
355
400
|
ezprinter.error("Invalid options returned by wizard")
|
|
356
401
|
return False
|
|
357
402
|
|
|
358
|
-
|
|
359
|
-
if isinstance(value, str):
|
|
360
|
-
return value.strip().lower() in {"1", "true", "yes", "y", "on"}
|
|
361
|
-
return bool(value)
|
|
362
|
-
|
|
363
|
-
virtual_env = _coerce_bool(options.get("virtual_env", False))
|
|
364
|
-
install_deps = _coerce_bool(options.get("install_deps", False))
|
|
365
|
-
setup_git_hooks = _coerce_bool(options.get("setup_git_hooks", False))
|
|
366
|
-
|
|
367
|
-
result = project_manager.setup_project(
|
|
368
|
-
project_type=project_type,
|
|
369
|
-
project_path=project_path,
|
|
370
|
-
virtual_env=virtual_env,
|
|
371
|
-
install_deps=install_deps,
|
|
372
|
-
setup_git_hooks=setup_git_hooks,
|
|
373
|
-
)
|
|
374
|
-
|
|
375
|
-
if result.success:
|
|
376
|
-
print_project_setup_result(result)
|
|
377
|
-
return True
|
|
378
|
-
ezprinter.error(f"Failed to configure {project_type} project: {result.error}")
|
|
379
|
-
return False
|
|
403
|
+
return _setup_and_report(project_manager, project_type, project_path, options)
|
|
380
404
|
|
|
381
405
|
|
|
382
406
|
# ///////////////////////////////////////////////////////////////
|
|
@@ -391,30 +415,42 @@ def _run_direct_setup(
|
|
|
391
415
|
options: dict[str, Any] | None = None,
|
|
392
416
|
) -> bool:
|
|
393
417
|
"""Run direct project setup."""
|
|
418
|
+
return _setup_and_report(project_manager, project_type, project_path, options or {})
|
|
419
|
+
|
|
394
420
|
|
|
395
|
-
|
|
396
|
-
|
|
421
|
+
def _setup_and_report(
|
|
422
|
+
project_manager: ProjectManagerInterface,
|
|
423
|
+
project_type: str,
|
|
424
|
+
project_path: Path,
|
|
425
|
+
options: dict[str, Any],
|
|
426
|
+
) -> bool:
|
|
427
|
+
"""Run the requested setup steps, or point to their flags when none is."""
|
|
428
|
+
from ...services.project.setup_profile_resolver import resolve_setup_profile
|
|
429
|
+
from ...ui.common import ezprinter
|
|
430
|
+
from ...ui.project import print_project_setup_result, print_setup_steps_hint
|
|
397
431
|
|
|
398
432
|
def _coerce_bool(value: object) -> bool:
|
|
399
433
|
if isinstance(value, str):
|
|
400
434
|
return value.strip().lower() in {"1", "true", "yes", "y", "on"}
|
|
401
435
|
return bool(value)
|
|
402
436
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
437
|
+
steps = {
|
|
438
|
+
name: _coerce_bool(options.get(name, False))
|
|
439
|
+
for name in ("virtual_env", "install_deps", "setup_git_hooks", "setup_vscode")
|
|
440
|
+
}
|
|
406
441
|
|
|
407
|
-
#
|
|
442
|
+
# With no step, setup_project only checks the project: nothing is written.
|
|
408
443
|
result = project_manager.setup_project(
|
|
409
|
-
project_type=project_type,
|
|
410
|
-
project_path=project_path,
|
|
411
|
-
virtual_env=virtual_env,
|
|
412
|
-
install_deps=install_deps,
|
|
413
|
-
setup_git_hooks=setup_git_hooks,
|
|
444
|
+
project_type=project_type, project_path=project_path, **steps
|
|
414
445
|
)
|
|
415
446
|
|
|
416
|
-
if result.success:
|
|
447
|
+
if not result.success:
|
|
448
|
+
ezprinter.error(f"Failed to configure {project_type} project: {result.error}")
|
|
449
|
+
return False
|
|
450
|
+
if any(steps.values()):
|
|
417
451
|
print_project_setup_result(result)
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
452
|
+
else:
|
|
453
|
+
profile = resolve_setup_profile(project_type)
|
|
454
|
+
language = profile.language if profile else "javascript"
|
|
455
|
+
print_setup_steps_hint(language, project_path)
|
|
456
|
+
return True
|