aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart/src/commands')
-rw-r--r--crates/mozart/src/commands/create_project.rs3
-rw-r--r--crates/mozart/src/commands/install.rs7
-rw-r--r--crates/mozart/src/commands/update.rs7
3 files changed, 7 insertions, 10 deletions
diff --git a/crates/mozart/src/commands/create_project.rs b/crates/mozart/src/commands/create_project.rs
index c2c4f92..92081d0 100644
--- a/crates/mozart/src/commands/create_project.rs
+++ b/crates/mozart/src/commands/create_project.rs
@@ -503,8 +503,7 @@ pub async fn execute(
let cache_config = mozart_registry::cache::build_cache_config(cli.no_cache);
let files_cache = mozart_registry::cache::Cache::files(&cache_config);
- let mut executor =
- mozart_registry::installer_executor::FilesystemExecutor::new(files_cache);
+ let mut executor = mozart_registry::installer_executor::FilesystemExecutor::new(files_cache);
super::install::install_from_lock(
&new_lock,
&target_dir,
diff --git a/crates/mozart/src/commands/install.rs b/crates/mozart/src/commands/install.rs
index b89793b..dbfeb92 100644
--- a/crates/mozart/src/commands/install.rs
+++ b/crates/mozart/src/commands/install.rs
@@ -695,11 +695,10 @@ pub async fn execute(
console: &mozart_core::console::Console,
) -> anyhow::Result<()> {
let cache_config = mozart_registry::cache::build_cache_config(cli.no_cache);
- let repositories = std::sync::Arc::new(
- mozart_registry::repository::RepositorySet::with_packagist(
+ let repositories =
+ std::sync::Arc::new(mozart_registry::repository::RepositorySet::with_packagist(
mozart_registry::cache::Cache::repo(&cache_config),
- ),
- );
+ ));
let mut executor = FilesystemExecutor::new(mozart_registry::cache::Cache::files(&cache_config));
let working_dir = resolve_working_dir(cli);
run(&working_dir, args, console, repositories, &mut executor).await
diff --git a/crates/mozart/src/commands/update.rs b/crates/mozart/src/commands/update.rs
index 8a0bef7..b4a3246 100644
--- a/crates/mozart/src/commands/update.rs
+++ b/crates/mozart/src/commands/update.rs
@@ -728,11 +728,10 @@ pub async fn execute(
console: &mozart_core::console::Console,
) -> anyhow::Result<()> {
let cache_config = mozart_registry::cache::build_cache_config(cli.no_cache);
- let repositories = std::sync::Arc::new(
- mozart_registry::repository::RepositorySet::with_packagist(
+ let repositories =
+ std::sync::Arc::new(mozart_registry::repository::RepositorySet::with_packagist(
mozart_registry::cache::Cache::repo(&cache_config),
- ),
- );
+ ));
let mut executor = mozart_registry::installer_executor::FilesystemExecutor::new(
mozart_registry::cache::Cache::files(&cache_config),
);