From 37899b229647a728ae0d0e9335b6a45631af3bb5 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 1 May 2022 21:05:19 +0200 Subject: [PATCH] Rename executable to ua Signed-off-by: trivernis --- Cargo.lock | 2 +- Cargo.toml | 4 +--- README.md | 4 ++-- src/{main.rs => bin/ua.rs} | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) rename src/{main.rs => bin/ua.rs} (96%) diff --git a/Cargo.lock b/Cargo.lock index 002ca7f..25550e2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -886,7 +886,7 @@ checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" [[package]] name = "universal-archiver" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index 1232cc5..cc25d0d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] -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" diff --git a/README.md b/README.md index 6958b75..22c5bf0 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ cargo install universal-archiver ```sh USAGE: - universal-archiver + ua OPTIONS: -h, --help Print help information @@ -37,7 +37,7 @@ SUBCOMMANDS: Extracts a given file USAGE: - universal-archiver extract [OUTPUT] + ua extract [OUTPUT] ARGS: The file to extract diff --git a/src/main.rs b/src/bin/ua.rs similarity index 96% rename from src/main.rs rename to src/bin/ua.rs index 5d80c09..3457253 100644 --- a/src/main.rs +++ b/src/bin/ua.rs @@ -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)