Repository: wcampbell0x2a/backhand (language: rust)

Issue:
released/installed binaries should have post name "-backhand"



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml
index 045be4b5..2c503873 100644
--- a/.github/workflows/binaries.yml
+++ b/.github/workflows/binaries.yml
@@ -6,7 +6,7 @@ on:
     branches: [ master ]
 
 env:
-  BINS: "add unsquashfs replace"
+  BINS: "add-backhand unsquashfs-backhand replace-backhand"
 
 name: binaries
 
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 2d5fd004..d84d5541 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -31,9 +31,9 @@ jobs:
 
       # generate release builds of the testable binaries
       # this is meant to actually run the binary, so this will fail but the binary will be built
-      - run: cargo llvm-cov run --bin replace --no-clean --release || true
-      - run: cargo llvm-cov run --bin add --no-clean --release || true
-      - run: cargo llvm-cov run --bin unsquashfs --no-clean --release || true
+      - run: cargo llvm-cov run --bin replace-backhand --no-clean --release || true
+      - run: cargo llvm-cov run --bin add-backhand --no-clean --release || true
+      - run: cargo llvm-cov run --bin unsquashfs-backhand --no-clean --release || true
 
       # run coverage on tests
       - run: cargo llvm-cov --workspace --codecov --output-path codecov.json --all-features --release --no-clean -- --skip slow
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6dd5892f..c9abd144 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -36,10 +36,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - Add color styling to help output ([#387](https://github.com/wcampbell0x2a/backhand/pull/387))
 
 #### unsquashfs 
+- Changed name to `unsquashfs-backhand` ([#356](https://github.com/wcampbell0x2a/backhand/pull/356))
 - Add progress bar for a cleaner output when extracting files ([#272](https://github.com/wcampbell0x2a/backhand/pull/272))
 - Add `--quiet` for not displaying progress bar and RUST_LOG output ([#272](https://github.com/wcampbell0x2a/backhand/pull/272))
 - Add multiple threads for extracing files, giving us the same performance in most cases as `squashfs-tools/unsquashfs`! ([#278](https://github.com/wcampbell0x2a/backhand/pull/278))
 
+#### add
+- Changed name to `add-backhand` ([#356](https://github.com/wcampbell0x2a/backhand/pull/356))
+
+#### replace
+- Changed name to `replace-backhand` ([#356](https://github.com/wcampbell0x2a/backhand/pull/356))
+
 ### ci
 - Add testing and release binaries for the following platforms:([#259](https://github.com/wcampbell0x2a/backhand/pull/259))
    - `aarch64-unknown-linux-musl`
diff --git a/README.md b/README.md
index 69a1c63c..0d24daf4 100644
--- a/README.md
+++ b/README.md
@@ -72,7 +72,7 @@ See ``--help`` for more information.
 ```no_test
 tool to uncompress, extract and list squashfs filesystems
 
-Usage: unsquashfs [OPTIONS] [FILESYSTEM]
+Usage: unsquashfs-backhand [OPTIONS] [FILESYSTEM]
 
 Arguments:
   [FILESYSTEM]  Squashfs file
@@ -99,7 +99,7 @@ Options:
 ```no_test
 tool to add a file or directory to squashfs filesystems
 
-Usage: add [OPTIONS] <IMAGE> <FILE_PATH_IN_IMAGE>
+Usage: add-backhand [OPTIONS] <IMAGE> <FILE_PATH_IN_IMAGE>
 
 Arguments:
   <IMAGE>               Squashfs input image
@@ -121,7 +121,7 @@ Options:
 ```no_test
 tool to replace files in squashfs filesystems
 
-Usage: replace [OPTIONS] <IMAGE> <FILE> <FILE_PATH_IN_IMAGE>
+Usage: replace-backhand [OPTIONS] <IMAGE> <FILE> <FILE_PATH_IN_IMAGE>
 
 Arguments:
   <IMAGE>               Squashfs input image
diff --git a/backhand-cli/Cargo.toml b/backhand-cli/Cargo.toml
index 8fea61aa..b105f54a 100644
--- a/backhand-cli/Cargo.toml
+++ b/backhand-cli/Cargo.toml
@@ -43,18 +43,21 @@ lzo = ["backhand/lzo"]
 ## Enables zstd compression inside library and binaries
 zstd = ["backhand/zstd"]
 
-[package.metadata.docs.rs]
-all-features = true
-rustdoc-args = ["--cfg", "docsrs"]
-
 [[bin]]
-name = "add"
+name = "unsquashfs-backhand"
+path = "src/bin/unsquashfs.rs"
 bench = false
 
 [[bin]]
-name = "unsquashfs"
+name = "add-backhand"
+path = "src/bin/add.rs"
 bench = false
 
 [[bin]]
-name = "replace"
+name = "replace-backhand"
+path = "src/bin/replace.rs"
 bench = false
+
+[package.metadata.docs.rs]
+all-features = true
+rustdoc-args = ["--cfg", "docsrs"]


Test patch:
diff --git a/backhand-test/tests/add.rs b/backhand-test/tests/add.rs
index 413c5f35..d0bbfb39 100644
--- a/backhand-test/tests/add.rs
+++ b/backhand-test/tests/add.rs
@@ -31,7 +31,7 @@ fn test_add() {
     // Add /test dir
     // ./target/release/add test-assets/test_05/out.squashfs /test --dir --gid 4242 --mtime 1 --uid 2 --mode 511 -o $tmp/out
     let tmp_dir = tempdir().unwrap();
-    let cmd = common::get_base_command("add")
+    let cmd = common::get_base_command("add-backhand")
         .env("RUST_LOG", "none")
         .args([
             &image_path,
@@ -62,7 +62,7 @@ fn test_add() {
 
     // We can't really test gid and uid, just trust me it works reading from the --file
 
-    let cmd = common::get_base_command("add")
+    let cmd = common::get_base_command("add-backhand")
         .env("RUST_LOG", "none")
         .args([
             tmp_dir.path().join("out").to_str().unwrap(),
diff --git a/backhand-test/tests/common/mod.rs b/backhand-test/tests/common/mod.rs
index 55ea04ee..7b524579 100644
--- a/backhand-test/tests/common/mod.rs
+++ b/backhand-test/tests/common/mod.rs
@@ -64,7 +64,7 @@ pub fn test_squashfs_tools_unsquashfs(
 pub fn test_bin_unsquashfs(file: &str, file_offset: Option<u64>, assert_success: bool) {
     let tmp_dir = tempdir().unwrap();
     // Run "our" unsquashfs against the control
-    let cmd = get_base_command("unsquashfs")
+    let cmd = get_base_command("unsquashfs-backhand")
         .env("RUST_LOG", "none")
         .args([
             "-d",
diff --git a/backhand-test/tests/replace.rs b/backhand-test/tests/replace.rs
index f0626032..2d2149f9 100644
--- a/backhand-test/tests/replace.rs
+++ b/backhand-test/tests/replace.rs
@@ -23,7 +23,7 @@ fn test_replace() {
 
     // extract single file
     let tmp_dir = tempdir().unwrap();
-    let cmd = common::get_base_command("unsquashfs")
+    let cmd = common::get_base_command("unsquashfs-backhand")
         .env("RUST_LOG", "none")
         .args([
             "--path-filter",
@@ -42,7 +42,7 @@ fn test_replace() {
         .unwrap();
 
     // replace that file
-    let cmd = common::get_base_command("replace")
+    let cmd = common::get_base_command("replace-backhand")
         .env("RUST_LOG", "none")
         .args([
             &image_path,
@@ -56,7 +56,7 @@ fn test_replace() {
 
     // extract
     {
-        let cmd = common::get_base_command("unsquashfs")
+        let cmd = common::get_base_command("unsquashfs-backhand")
             .env("RUST_LOG", "none")
             .args([
                 "--path-filter",
diff --git a/backhand-test/tests/unsquashfs.rs b/backhand-test/tests/unsquashfs.rs
index 13aa2165..160683f2 100644
--- a/backhand-test/tests/unsquashfs.rs
+++ b/backhand-test/tests/unsquashfs.rs
@@ -19,7 +19,7 @@ fn test_unsquashfs_cli() {
     let image_path = format!("{TEST_PATH}/{FILE_NAME}");
 
     // single file
-    let cmd = common::get_base_command("unsquashfs")
+    let cmd = common::get_base_command("unsquashfs-backhand")
         .env("RUST_LOG", "none")
         .args(["--path-filter", r#"/usr/bin/wget"#, "-l", "--quiet", &image_path])
         .unwrap();
@@ -32,7 +32,7 @@ fn test_unsquashfs_cli() {
     );
 
     // multiple file
-    let cmd = common::get_base_command("unsquashfs")
+    let cmd = common::get_base_command("unsquashfs-backhand")
         .env("RUST_LOG", "none")
         .args(["--path-filter", r#"/www/webpages/data"#, "-l", "--quiet", &image_path])
         .unwrap();
@@ -66,7 +66,7 @@ fn test_unsquashfs_cli() {
     // Number of inodes 1828
     // Number of ids 1
     // Number of xattr ids 0
-    let cmd = common::get_base_command("unsquashfs")
+    let cmd = common::get_base_command("unsquashfs-backhand")
         .env("RUST_LOG", "none")
         .args(["-s", "--quiet", &image_path])
         .unwrap();
@@ -124,7 +124,7 @@ fn test_unsquashfs_cli_auto_offset() {
 
     let tmp_dir = tempdir().unwrap();
     {
-        let cmd = common::get_base_command("unsquashfs")
+        let cmd = common::get_base_command("unsquashfs-backhand")
             .env("RUST_LOG", "none")
             .args([
                 "--auto-offset",