From 0ac372da08ae56b6b0bd6dc2912bf8ebef6078b7 Mon Sep 17 00:00:00 2001 From: crispycat Date: Sat, 8 Feb 2025 12:45:48 -0500 Subject: [PATCH] cargo goodgirl but enby --- README.md | 12 ++++++------ src/main.rs | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 79e972c..c55e399 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# cargo-goodgirl - -Sometimes getting Rust projects to compile is hard! Wouldn't it be nice if your computer rewarded you by calling you a good girl? +# cargo-goodenby +![enby](/enby.png) +Sometimes getting Rust projects to compile is hard! Wouldn't it be nice if your computer rewarded you by calling you a good enby? ## How it works -1. Install with `cargo install cargo-gg` -1. Use `gg` as a wrapper (e.g. `cargo gg run` to run your Rust project) -1. If your project fails to build, and then it succeeds, cargo will say "Good girl!" +1. Install with `cargo install cargo-ge` +1. Use `ge` as a wrapper (e.g. `cargo ge run` to run your Rust project) +1. If your project fails to build, and then it succeeds, cargo will say "Good enby!" diff --git a/src/main.rs b/src/main.rs index a247650..09cb080 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ fn main() -> anyhow::Result<()> { let mut arg_iter = env::args().peekable(); arg_iter.next(); - if arg_iter.peek().map_or(false, |arg| arg == "gg") { + if arg_iter.peek().map_or(false, |arg| arg == "ge") { let _ = arg_iter.next(); } @@ -20,11 +20,11 @@ fn main() -> anyhow::Result<()> { let status = cmd.status()?; let code = status.code().unwrap_or(1); - let path = env::temp_dir().join(".gg-failed"); + let path = env::temp_dir().join(".ge-failed"); if code == 0 { if std::fs::exists(&path)? { - println!("Good girl!"); + println!("Good enby!"); let _ = std::fs::remove_file(path); }