Compare commits

...

1 Commits

Author SHA1 Message Date
claude[bot] 1227b7b99a feat(cli): add --project alias for --name in cloud sync commands
Add --project as an alias for --name flag in bm cloud sync, bisync,
and check commands so users can use either flag interchangeably. Keeps
--name for backwards compatibility.

Closes #817

Co-authored-by: Drew Cain <groksrc@users.noreply.github.com>
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
2026-05-12 18:44:37 +00:00
2 changed files with 5 additions and 3 deletions
@@ -91,7 +91,7 @@ def _get_sync_project(
@cloud_app.command("sync")
def sync_project_command(
name: str = typer.Option(..., "--name", help="Project name to sync"),
name: str = typer.Option(..., "--name", "--project", help="Project name to sync"),
dry_run: bool = typer.Option(False, "--dry-run", help="Preview changes without syncing"),
verbose: bool = typer.Option(False, "--verbose", "-v", help="Show detailed output"),
) -> None:
@@ -138,7 +138,7 @@ def sync_project_command(
@cloud_app.command("bisync")
def bisync_project_command(
name: str = typer.Option(..., "--name", help="Project name to bisync"),
name: str = typer.Option(..., "--name", "--project", help="Project name to bisync"),
dry_run: bool = typer.Option(False, "--dry-run", help="Preview changes without syncing"),
resync: bool = typer.Option(False, "--resync", help="Force new baseline"),
verbose: bool = typer.Option(False, "--verbose", "-v", help="Show detailed output"),
@@ -200,7 +200,7 @@ def bisync_project_command(
@cloud_app.command("check")
def check_project_command(
name: str = typer.Option(..., "--name", help="Project name to check"),
name: str = typer.Option(..., "--name", "--project", help="Project name to check"),
one_way: bool = typer.Option(False, "--one-way", help="Check one direction only (faster)"),
) -> None:
"""Verify file integrity between local and cloud.
@@ -16,7 +16,9 @@ runner = CliRunner()
"argv",
[
["cloud", "sync", "--name", "research"],
["cloud", "sync", "--project", "research"],
["cloud", "bisync", "--name", "research"],
["cloud", "bisync", "--project", "research"],
],
)
def test_cloud_sync_commands_skip_explicit_cloud_project_sync(monkeypatch, argv, config_manager):