Skip to content

Commit a54610a

Browse files
author
root
committed
Clarify shared infrastructure force wording
1 parent 238def5 commit a54610a

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/specify_cli/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ def _update_init_options_for_integration(
11191119
@integration_app.command("use")
11201120
def integration_use(
11211121
key: str = typer.Argument(help="Installed integration key to make the default"),
1122-
force: bool = typer.Option(False, "--force", help="Overwrite managed shared infrastructure while changing the default"),
1122+
force: bool = typer.Option(False, "--force", help="Overwrite existing shared infrastructure files, including customizations, while changing the default"),
11231123
):
11241124
"""Set the default integration without uninstalling other integrations."""
11251125
from .integrations import get_integration
@@ -1320,7 +1320,7 @@ def integration_switch(
13201320
)
13211321
console.print(
13221322
f"\n[green]✓[/green] Default integration remains [bold]{target}[/bold]; "
1323-
"managed shared infrastructure refreshed."
1323+
"shared infrastructure refreshed."
13241324
)
13251325
raise typer.Exit(0)
13261326
console.print(f"[yellow]Integration '{target}' is already the default integration. Nothing to switch.[/yellow]")

tests/integrations/test_integration_subcommand.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,8 @@ def test_switch_same_force_refreshes_shared_templates(self, tmp_path):
764764
finally:
765765
os.chdir(old_cwd)
766766
assert result.exit_code == 0, result.output
767-
assert "managed shared infrastructure refreshed" in result.output
767+
assert "shared infrastructure refreshed" in result.output
768+
assert "managed shared infrastructure refreshed" not in result.output
768769
assert "/speckit-plan" in template.read_text(encoding="utf-8")
769770
assert "/speckit-plan" in script.read_text(encoding="utf-8")
770771

0 commit comments

Comments
 (0)