From fe0f8ccca853e04a07619267cb740218ffca464a Mon Sep 17 00:00:00 2001 From: Ben Barber Date: Fri, 7 Aug 2026 11:10:24 -0400 Subject: [PATCH] =?UTF-8?q?style:=20cargo=20fmt=20=E2=80=94=20format=20the?= =?UTF-8?q?=20sync=20code=20merged=20in=20#136?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/path-cli/src/cmd_cache.rs | 12 ++++++++++-- crates/path-cli/tests/integration.rs | 9 ++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/crates/path-cli/src/cmd_cache.rs b/crates/path-cli/src/cmd_cache.rs index a386019c..88c1b7f4 100644 --- a/crates/path-cli/src/cmd_cache.rs +++ b/crates/path-cli/src/cmd_cache.rs @@ -48,7 +48,10 @@ pub fn run(op: CacheOp) -> Result<()> { CacheOp::Ls => run_ls(), CacheOp::Rm { id } => run_rm(&id), #[cfg(not(target_os = "emscripten"))] - CacheOp::Sync { types, project_under } => run_sync(types, project_under), + CacheOp::Sync { + types, + project_under, + } => run_sync(types, project_under), } } @@ -81,7 +84,12 @@ fn run_sync(types: Vec, project_under: Option) -> Result< let explicit = !types.is_empty(); let types = resolve_types(&types); let bundle = HarnessBundle::from_environment(); - let outcomes = sync_bundle(&bundle, &types, project_under.as_deref(), &mut Progress::new())?; + let outcomes = sync_bundle( + &bundle, + &types, + project_under.as_deref(), + &mut Progress::new(), + )?; eprint!("{}", render_summary(&outcomes, explicit)); Ok(()) } diff --git a/crates/path-cli/tests/integration.rs b/crates/path-cli/tests/integration.rs index af537c1b..031336c3 100644 --- a/crates/path-cli/tests/integration.rs +++ b/crates/path-cli/tests/integration.rs @@ -912,7 +912,14 @@ fn cache_sync_project_under_limits_ingestion() { cmd() .env("HOME", home.path()) .env("TOOLPATH_CONFIG_DIR", cfg.path()) - .args(["p", "cache", "sync", "claude", "--project-under", "/nowhere"]) + .args([ + "p", + "cache", + "sync", + "claude", + "--project-under", + "/nowhere", + ]) .assert() .success() .stderr(predicate::str::contains("0 new, 0 updated, 0 unchanged"));