Compare commits
4 Commits
b46621f772
...
8c22757f71
Author | SHA1 | Date | |
---|---|---|---|
8c22757f71
|
|||
0793c8bbd7
|
|||
ddad92dc32
|
|||
002c85329e
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -207,7 +207,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "git"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"command-with-spinner",
|
||||
|
@@ -13,6 +13,6 @@ anyhow = "1.0"
|
||||
clap = { version = "4.5", features = ["derive"] }
|
||||
colored = "3.0"
|
||||
dirs = "6.0"
|
||||
git = { version = "0.1.0", path = "../git" }
|
||||
git = { version = "0.2.0", path = "../git" }
|
||||
indicatif = "0.17"
|
||||
thiserror = { version = "2.0" }
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "git"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
|
||||
edition.workspace = true
|
||||
authors.workspace = true
|
||||
|
@@ -1,9 +1,6 @@
|
||||
/// Git operations error type
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum GitError {
|
||||
#[error("Command failed with exit code: {0}")]
|
||||
Failed(i32),
|
||||
|
||||
#[error("Command failed without exit code")]
|
||||
FailedNoCode,
|
||||
|
||||
|
@@ -12,5 +12,5 @@ repository.workspace = true
|
||||
anyhow = "1.0"
|
||||
clap = { version = "4.5", features = ["derive"] }
|
||||
colored = "3.0"
|
||||
git = { version = "0.1.0", path = "../git" }
|
||||
git = { version = "0.2.0", path = "../git" }
|
||||
indicatif = "0.17"
|
||||
|
@@ -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(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user