feat(setup-repo): Use URI to generate target directory if not provided #2

Merged
noah.knegt merged 10 commits from optional-target-dir into main 2025-07-03 23:53:23 +02:00
6 changed files with 30 additions and 15 deletions
Showing only changes of commit ddad92dc32 - Show all commits

View File

@@ -53,7 +53,7 @@ fn main() -> Result<()> {
if args.verbose {
println!("{}", "Verbose mode enabled".dimmed());
println!("{}", format!("Repository URL: {}", args.repo_url).dimmed());
println!("{}", format!("Target directory: {}", target_dir).dimmed());
println!("{}", format!("Target directory: {target_dir}").dimmed());
}
println!("{}", "Setting up repository for worktree development".blue());
@@ -71,6 +71,6 @@ fn main() -> Result<()> {
Git::fetch_remotes(&target_dir)?;
println!("{}", "Repository setup complete.".green());
println!("{}", format!("You can now create worktrees in '{}'.", target_dir).green());
println!("{}", format!("You can now create worktrees in '{target_dir}'.").green());
Ok(())
}