feat: add ability to specify custom command
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
2025-01-08 22:32:27 +01:00
parent 5e97f68a77
commit 708f8d6388
5 changed files with 77 additions and 17 deletions

View File

@@ -4,6 +4,7 @@ use crate::{
app::App,
cache::CacheApp,
components::inline_command::InlineCommand,
custom_command::CustomCommandApp,
fuzzy_matcher::{FuzzyMatcher, FuzzyMatcherApp},
git_clone::GitCloneApp,
git_provider::Repository,
@@ -118,6 +119,11 @@ impl RootCommand {
tracing::info!("repository already exists");
}
self.app
.custom_command()
.execute_post_update_command(&project_path)
.await?;
if shell {
self.app.shell().spawn_shell(&repo).await?;
} else {