Rename executable to ua

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

2
Cargo.lock generated

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

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

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

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