Skip to content

Wire up bitwarden-sync in cli and add temporary sync command#835

Merged
Hinton merged 3 commits intomainfrom
cli-sync
Mar 17, 2026
Merged

Wire up bitwarden-sync in cli and add temporary sync command#835
Hinton merged 3 commits intomainfrom
cli-sync

Conversation

@Hinton
Copy link
Member

@Hinton Hinton commented Mar 11, 2026

🎟️ Tracking

📔 Objective

Wire up the new sync infrastructure in the CLI and add a skeleton sync command which can be used during development.

@Hinton Hinton requested review from a team as code owners March 11, 2026 11:21
@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2026

Logo
Checkmarx One – Scan Summary & Details0ae1f66c-8c6c-4ee7-bd4d-9bf578ea5053

Great job! No new security vulnerabilities introduced in this pull request

@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2026

🔍 SDK Breaking Change Detection Results

SDK Version: cli-sync (4cebd07)
Completed: 2026-03-11 12:54:49 UTC
Total Time: 246s

Client Status Details
typescript ❌ Breaking changes detected TypeScript compilation failed with new SDK version - View Details

Breaking change detection completed. View SDK workflow

@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 0% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.30%. Comparing base (60b03b0) to head (4cebd07).
⚠️ Report is 22 commits behind head on main.

Files with missing lines Patch % Lines
crates/bitwarden-pm/src/lib.rs 0.00% 10 Missing ⚠️
crates/bw/src/platform/sync.rs 0.00% 9 Missing ⚠️
crates/bw/src/auth/login.rs 0.00% 6 Missing ⚠️
crates/bw/src/main.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #835      +/-   ##
==========================================
- Coverage   82.43%   82.30%   -0.14%     
==========================================
  Files         350      350              
  Lines       41735    41498     -237     
==========================================
- Hits        34404    34153     -251     
- Misses       7331     7345      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

}

/// Temporary sync implementation so you can call `bw sync` and have it do something.
pub(crate) async fn execute_sync(client: PasswordManagerClient, _args: SyncArgs) -> CommandResult {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be best if we moved this method to be part of SyncArgs:

impl SyncArgs {
    pub async fn run(&self, client: PasswordManagerClient) -> ... {}
}

One of the benefits of doing it this way is that you don't require importing the loose function in main.rs, which is going to get huge if we have to import them all.

@Hinton Hinton requested a review from dani-garcia March 11, 2026 12:42
@sonarqubecloud
Copy link

@Hinton Hinton merged commit 4fa85bf into main Mar 17, 2026
64 checks passed
@Hinton Hinton deleted the cli-sync branch March 17, 2026 17:17
bw-ghapp bot pushed a commit to bitwarden/sdk-swift that referenced this pull request Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants