Crates.io | packy |
lib.rs | packy |
version | 0.0.3 |
source | src |
created_at | 2023-09-03 13:54:17.330609 |
updated_at | 2023-10-12 13:28:03.487411 |
description | CLI tool for unpacking archives |
homepage | |
repository | https://github.com/vadorovsky/packy |
max_upload_size | |
id | 962259 |
size | 30,557 |
CLI tool for creating unpacking archives (of the most common types).
It's focused on simplicity such as:
Not gonna lie, the main reasons for this project to start are:
tar
.
tar
on Linux
and macOS differ with archive type support and CLI options. Random failures
of your shell scripts across different system are annoying, aren't they?tar
don't
autodetect archive types. So you write you script and then it fails on some
ancient Ubuntu version. Ain't fun, huh?Packy aims to solve that by:
Download the latest binary from the releases page.
cargo install packy
packy [OPTIONS] <INPUT>
Arguments:
<INPUT> Path to the archive to packy
Options:
-o, --output <OUTPUT>
Directory to unpack the archive into [default: .]
-s, --strip-components <STRIP_COMPONENTS>
Strip the specified number of leading components from the archive [default: 0]
-v, --verbose
Verbose output
-h, --help
Print help
-V, --version
Print version
# Unpack archive.tar.gz into the current directory.
packy archive.tar.gz
# Unpack archive.tar.xz into the directory /tmp/foo.
packy -o /tmp/foo archive.tar.xz
# Unpack archive.tar.bz2 into the directory /tmp/foo, stripping the first component.
packy -o /tmp/foo -s 1 archive.tar.gz