feat/add-post-clone-command
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-01-08 22:47:23 +01:00
parent 962425c515
commit 2f501c0efd
3 changed files with 57 additions and 5 deletions

View File

@@ -111,18 +111,23 @@ impl RootCommand {
} else {
eprintln!("cloning repository...");
git_clone.clone_repo(&repo, force_refresh).await?;
self.app
.custom_command()
.execute_post_update_command(&project_path)
.await?;
}
} else {
tracing::info!("skipping clone for repo: {}", &repo.to_rel_path().display());
}
} else {
tracing::info!("repository already exists");
}
self.app
.custom_command()
.execute_post_update_command(&project_path)
.await?;
self.app
.custom_command()
.execute_post_update_command(&project_path)
.await?;
}
if shell {
self.app.shell().spawn_shell(&repo).await?;