backhand
backhand copied to clipboard
Add `unsquashfs` utility to lib
Currently, if you want to replace a std::process::Command::new("unsquashfs") call with backhand, you need to replicate a large portion of the code in backhand-cli's unsquashfs bin.
It would be nice if the functionality of extracting a squashfs into a dir was provided by the library.
Surely. I already have backhand-cli for the next release, I could just extract the cli as-a- llibrary.
I wanted to try my hand at this, what would you prefer:
- Adding the utility to
backhand's lib (will increase dependency closure) - Adding it to
backhandunder ahelpersfeature - Adding it in a new
backhand-helperscrate
I haven't thought much about where the code would be, or what the API would be. But I expect the duplication to be the most between this package and backhand-cli. I fact, maybe just have the code be in that package, just as the lib.rs.
The API would mostly have the main of the bins, with the Clap argument structs as arguments? Just thinking out loud.