Skip to content

Commit 1122bc5

Browse files
author
root
committed
Clarify shared infrastructure force wording
1 parent e89d9ce commit 1122bc5

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
@@ -1791,7 +1791,7 @@ def _update_init_options_for_integration(
17911791
@integration_app.command("use")
17921792
def integration_use(
17931793
key: str = typer.Argument(help="Installed integration key to make the default"),
1794-
force: bool = typer.Option(False, "--force", help="Overwrite managed shared infrastructure while changing the default"),
1794+
force: bool = typer.Option(False, "--force", help="Overwrite existing shared infrastructure files, including customizations, while changing the default"),
17951795
):
17961796
"""Set the default integration without uninstalling other integrations."""
17971797
from .integrations import get_integration
@@ -1992,7 +1992,7 @@ def integration_switch(
19921992
)
19931993
console.print(
19941994
f"\n[green]✓[/green] Default integration remains [bold]{target}[/bold]; "
1995-
"managed shared infrastructure refreshed."
1995+
"shared infrastructure refreshed."
19961996
)
19971997
raise typer.Exit(0)
19981998
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
@@ -736,7 +736,8 @@ def test_switch_same_force_refreshes_shared_templates(self, tmp_path):
736736
finally:
737737
os.chdir(old_cwd)
738738
assert result.exit_code == 0, result.output
739-
assert "managed shared infrastructure refreshed" in result.output
739+
assert "shared infrastructure refreshed" in result.output
740+
assert "managed shared infrastructure refreshed" not in result.output
740741
assert "/speckit-plan" in template.read_text(encoding="utf-8")
741742
assert "/speckit-plan" in script.read_text(encoding="utf-8")
742743

0 commit comments

Comments
 (0)