Rename executable to ua

Signed-off-by: trivernis <trivernis@protonmail.com>
main
trivernis 3 years ago
parent d4f6b02fdc
commit 37899b2296
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

2
Cargo.lock generated

@ -886,7 +886,7 @@ checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
[[package]] [[package]]
name = "universal-archiver" name = "universal-archiver"
version = "0.1.0" version = "0.1.1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"clap", "clap",

@ -3,15 +3,13 @@ name = "universal-archiver"
description = "A tool to unpack archives without having to specify the archive type." description = "A tool to unpack archives without having to specify the archive type."
repository = "https://github.com/Trivernis/universal-archiver.git" repository = "https://github.com/Trivernis/universal-archiver.git"
authors = ["Trivernis <trivernis@pm.me>"] authors = ["Trivernis <trivernis@pm.me>"]
version = "0.1.0" version = "0.1.1"
edition = "2021" edition = "2021"
keywords = ["compression", "extract-archive", "archiver", "cli"] keywords = ["compression", "extract-archive", "archiver", "cli"]
license = "MIT" license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "universal-archiver"
[dependencies] [dependencies]
anyhow = "1.0.57" anyhow = "1.0.57"

@ -20,7 +20,7 @@ cargo install universal-archiver
```sh ```sh
USAGE: USAGE:
universal-archiver <SUBCOMMAND> ua <SUBCOMMAND>
OPTIONS: OPTIONS:
-h, --help Print help information -h, --help Print help information
@ -37,7 +37,7 @@ SUBCOMMANDS:
Extracts a given file Extracts a given file
USAGE: USAGE:
universal-archiver extract <FILE> [OUTPUT] ua extract <FILE> [OUTPUT]
ARGS: ARGS:
<FILE> The file to extract <FILE> The file to extract

@ -35,7 +35,7 @@ fn main() {
let output = output.unwrap_or_else(|| { let output = output.unwrap_or_else(|| {
file.file_stem() file.file_stem()
.map(PathBuf::from) .map(PathBuf::from)
.unwrap_or_else(|| PathBuf::from("out")) .unwrap_or_else(|| PathBuf::from("../../out"))
}); });
format format
.extract(&file, &output) .extract(&file, &output)
Loading…
Cancel
Save