Skip to content
/ totebag Public

A tool for extracting/archiving files and directories in several formats.

License

Notifications You must be signed in to change notification settings

tamada/totebag

Repository files navigation

totebag

Version MIT License docker

build Rust Report Card Coverage Status

A tool for extracting/archiving files and directories in multiple formats.

🗣️ Description

There are many archive formats and their tools. The one big problem with using the tools is that their interfaces are slightly different and it makes us confused. Then, the totebag treats the archive files as the same interface. The tool can extract archive files and archive files and directories.

Usage

A tool for extracting/archiving files and directories in multiple formats.

Usage: totebag [OPTIONS] [ARGUMENTS]...

Arguments:
  [ARGUMENTS]...  List of files or directories to be processed.
                  If archive mode, the archive file name can specify at the first argument.
                  If the frist argument was not the archive name, the default archive name `totebag.zip` is applied.

Options:
      --to-archive-name-dir          extract files to DEST/ARCHIVE_NAME directory (extract mode).
  -C, --dir <DIR>                    Specify the base directory for archiving or extracting. [default: .]
  -i, --ignore-types <IGNORE_TYPES>  Specify the ignore type. [possible values: default, hidden,
                                         git-ignore, git-global, git-exclude, ignore]
  -n, --no-recursive                 No recursive directory (archive mode).
      --level <LEVEL>                Specify the log level [default: warn]
                                         [possible values: error, warn, info, debug, trace]
  -m, --mode <MODE>                  Mode of operation. [default: auto] 
                                         [possible values: auto, archive, extract, list]
  -o, --output <DEST>                Output file in archive mode, or output directory in extraction mode
      --overwrite                    Overwrite existing files.
  -h, --help                         Print help
  -V, --version                      Print version

Supported archive formats:

Install

brew install tamada/tap/totebag

🐳 Docker

docker run -it --rm -v $PWD:/workdir ghcr.io/tamada/totebag:0.7.0 [OPTIONS] [ARGUMENTS]...
  • Working directory: /workdir
  • User: nonroot

About

Authors

The Logo and the Origin of totebag

The general word, totebag, is a bag for carrying things. From this, I chose the name of the tool, totebag, as a tool for packing files and directories carelessly.

logo

This logo was generated by Bing Image Creator.

Related Tools

  • magiclen/xcompress
    • XCompress is a free file archiver utility on Linux, providing multi-format archiving to and extracting from ZIP, Z, GZIP, BZIP2, LZ, XZ, LZMA, 7ZIP, TAR, RAR and ZSTD.
  • meuter/arkiv-rs
    • Thin convenience library to manipulate compressed archive of vairous types through a single interface.