specify-cli 1.3.1__py3-none-any.whl → 1.3.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- specify_cli/integrations/command_uninstall.py +25 -21
- {specify_cli-1.3.1.dist-info → specify_cli-1.3.2.dist-info}/METADATA +1 -1
- {specify_cli-1.3.1.dist-info → specify_cli-1.3.2.dist-info}/RECORD +6 -6
- {specify_cli-1.3.1.dist-info → specify_cli-1.3.2.dist-info}/WHEEL +0 -0
- {specify_cli-1.3.1.dist-info → specify_cli-1.3.2.dist-info}/entry_points.txt +0 -0
- {specify_cli-1.3.1.dist-info → specify_cli-1.3.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""The ``specify integration uninstall`` command."""
|
|
2
2
|
from __future__ import annotations
|
|
3
3
|
|
|
4
|
+
from pathlib import Path
|
|
4
5
|
|
|
5
6
|
import typer
|
|
6
7
|
from rich.markup import escape
|
|
@@ -10,7 +11,28 @@ from .._utils import _display_project_path
|
|
|
10
11
|
from ..integration_state import default_integration_key as _default_integration_key, installed_integration_keys as _installed_integration_keys, integration_settings as _integration_settings
|
|
11
12
|
from ._commands import integration_app
|
|
12
13
|
from ._lifecycle import external_lifecycle, lifecycle_success
|
|
13
|
-
from ._helpers import _MANIFEST_READ_ERRORS, _clear_init_options_for_integration, _read_integration_json, _register_extensions_for_agent, _register_presets_for_agent, _remove_integration_json, _resolve_integration_options, _set_default_integration_or_exit, _unregister_extensions_for_agent, _unregister_presets_for_agent, _write_integration_json
|
|
14
|
+
from ._helpers import _MANIFEST_READ_ERRORS, _clear_init_options_for_integration, _read_integration_json, _register_extensions_for_agent, _register_presets_for_agent, _remove_integration_json, _resync_manifest_after_registration, _resolve_integration_options, _set_default_integration_or_exit, _snapshot_manifest_before_registration, _unregister_extensions_for_agent, _unregister_presets_for_agent, _write_integration_json
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def _register_fallback_contributions(project_root: Path, new_default: str) -> None:
|
|
18
|
+
manifest, unmodified_files = _snapshot_manifest_before_registration(project_root, new_default)
|
|
19
|
+
_register_extensions_for_agent(
|
|
20
|
+
project_root,
|
|
21
|
+
new_default,
|
|
22
|
+
continuing="The fallback integration was selected, but extensions may need re-registration.",
|
|
23
|
+
)
|
|
24
|
+
_register_presets_for_agent(
|
|
25
|
+
project_root,
|
|
26
|
+
new_default,
|
|
27
|
+
continuing="The fallback integration was selected, but presets may need re-registration.",
|
|
28
|
+
)
|
|
29
|
+
if manifest is not None:
|
|
30
|
+
_resync_manifest_after_registration(
|
|
31
|
+
manifest,
|
|
32
|
+
new_default,
|
|
33
|
+
unmodified_files=unmodified_files,
|
|
34
|
+
continuing="The fallback integration was selected, but its manifest hashes may be stale.",
|
|
35
|
+
)
|
|
14
36
|
|
|
15
37
|
|
|
16
38
|
@integration_app.command("uninstall")
|
|
@@ -70,16 +92,7 @@ def integration_uninstall(
|
|
|
70
92
|
raw_options=raw_options,
|
|
71
93
|
parsed_options=parsed_options,
|
|
72
94
|
)
|
|
73
|
-
|
|
74
|
-
project_root,
|
|
75
|
-
new_default,
|
|
76
|
-
continuing="The fallback integration was selected, but extensions may need re-registration.",
|
|
77
|
-
)
|
|
78
|
-
_register_presets_for_agent(
|
|
79
|
-
project_root,
|
|
80
|
-
new_default,
|
|
81
|
-
continuing="The fallback integration was selected, but presets may need re-registration.",
|
|
82
|
-
)
|
|
95
|
+
_register_fallback_contributions(project_root, new_default)
|
|
83
96
|
else:
|
|
84
97
|
_write_integration_json(
|
|
85
98
|
project_root, new_default, remaining, _integration_settings(current)
|
|
@@ -141,16 +154,7 @@ def integration_uninstall(
|
|
|
141
154
|
raw_options=raw_options,
|
|
142
155
|
parsed_options=parsed_options,
|
|
143
156
|
)
|
|
144
|
-
|
|
145
|
-
project_root,
|
|
146
|
-
new_default,
|
|
147
|
-
continuing="The fallback integration was selected, but extensions may need re-registration.",
|
|
148
|
-
)
|
|
149
|
-
_register_presets_for_agent(
|
|
150
|
-
project_root,
|
|
151
|
-
new_default,
|
|
152
|
-
continuing="The fallback integration was selected, but presets may need re-registration.",
|
|
153
|
-
)
|
|
157
|
+
_register_fallback_contributions(project_root, new_default)
|
|
154
158
|
else:
|
|
155
159
|
_write_integration_json(
|
|
156
160
|
project_root, new_default, remaining, _integration_settings(current)
|
|
@@ -125,7 +125,7 @@ specify_cli/integrations/command_scaffold.py,sha256=wAECcT8a2eD_HLO1KWQcUNsiGGAQ
|
|
|
125
125
|
specify_cli/integrations/command_search.py,sha256=VmdCj397uoaDW1OWS6y5WZZVFQLzfEiTuC_cvrb7qGw,4374
|
|
126
126
|
specify_cli/integrations/command_status.py,sha256=SJf-2MhQ_lYvhqQ3IrRjb4_Fz0YYAo6MWXpGL9a1Rn0,3339
|
|
127
127
|
specify_cli/integrations/command_switch.py,sha256=ua8rxqW9Ftqjnc8DeX0t4N8KvhzQoDS1SafCBT4VkKQ,20454
|
|
128
|
-
specify_cli/integrations/command_uninstall.py,sha256=
|
|
128
|
+
specify_cli/integrations/command_uninstall.py,sha256=bc2QBXReh7X6Brj-m1BL_widRkKS0lG9VrNAu2FSzkM,7795
|
|
129
129
|
specify_cli/integrations/command_upgrade.py,sha256=ZZVdWJEkJW3AfImZFxmE5FuqfujCb04_B5hBgnsCrig,17113
|
|
130
130
|
specify_cli/integrations/command_use.py,sha256=F1ld46r8G6T5831koABt0nbG3HuOu0LgPAtpH_rnEQk,3095
|
|
131
131
|
specify_cli/integrations/installer.py,sha256=63vPNfW97XMSSpHkg7i9D0lK7aIFhDmzA32EYhOTRls,47980
|
|
@@ -386,8 +386,8 @@ specify_cli/core_pack/templates/vscode-settings.json,sha256=PbOh2EF9OKVrQF9gtgDc
|
|
|
386
386
|
specify_cli/core_pack/workflows/assess/workflow.yml,sha256=AAnpPIQ-6dlpBHXZOX8LM8bcbSAGEWKI0u5YzN_xIag,1768
|
|
387
387
|
specify_cli/core_pack/workflows/bugfix/workflow.yml,sha256=0zcr3uE4Be-FJobRYL36Q-y85WQRRZzXxK0BxxKmP-s,1302
|
|
388
388
|
specify_cli/core_pack/workflows/speckit/workflow.yml,sha256=F3dhxeffKBJr7qBDtctFrq95WAkMAi3BGscTmUIvz7w,2118
|
|
389
|
-
specify_cli-1.3.
|
|
390
|
-
specify_cli-1.3.
|
|
391
|
-
specify_cli-1.3.
|
|
392
|
-
specify_cli-1.3.
|
|
393
|
-
specify_cli-1.3.
|
|
389
|
+
specify_cli-1.3.2.dist-info/METADATA,sha256=z6JuQ1Jy9SwxE5ugZRS-Q-PUCd62ecjyKMTamoV6oXY,15084
|
|
390
|
+
specify_cli-1.3.2.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
391
|
+
specify_cli-1.3.2.dist-info/entry_points.txt,sha256=zO7Jooxo-O6FCM02xdzsNB8WNakvnPDv5bpZr1P4Pmo,45
|
|
392
|
+
specify_cli-1.3.2.dist-info/licenses/LICENSE,sha256=JRC0RrwfDPlwJFMHXSDNiGMeIOVkJljttzJdnB61NPc,1060
|
|
393
|
+
specify_cli-1.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|