Compare commits

...

4 Commits

Author SHA1 Message Date
8c22757f71 chore(create-worktree): Update git lib version to 0.2.0
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-03 23:16:39 +02:00
0793c8bbd7 chore(setup-repo): Update the git lib version to 0.2.0
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-03 23:16:11 +02:00
ddad92dc32 chore(setup-repo): Fix clippy warnings
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-03 23:15:49 +02:00
002c85329e feat(git): Remove the failure code from the error type
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-07-03 23:15:19 +02:00
6 changed files with 6 additions and 9 deletions

2
Cargo.lock generated
View File

@@ -207,7 +207,7 @@ dependencies = [
[[package]]
name = "git"
version = "0.1.0"
version = "0.2.0"
dependencies = [
"anyhow",
"command-with-spinner",

View File

@@ -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" }

View File

@@ -1,6 +1,6 @@
[package]
name = "git"
version = "0.1.0"
version = "0.2.0"
edition.workspace = true
authors.workspace = true

View File

@@ -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,

View File

@@ -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"

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(())
}