#zip #utils #yaml #directories #yaml-config #specify

app ziply

A simple tool to easily specify directories inside ZIP files using YAML configuration

3 releases

0.1.2 Nov 13, 2024
0.1.1 Oct 22, 2024
0.1.0 Oct 10, 2024

#191 in Compression

Download history 111/week @ 2024-10-05 31/week @ 2024-10-12 146/week @ 2024-10-19 18/week @ 2024-10-26 105/week @ 2024-11-09 21/week @ 2024-11-16 3/week @ 2024-11-23 5/week @ 2024-11-30

134 downloads per month

MIT license

12KB
298 lines

Ziply makes specifying directories inside a ZIP simple.

Installation

cargo install ziply

Quick Start

  1. Define your ZIP files with a ziply.yaml.
  2. Run ziply run.

Configuration

Here is an example of a ziply.yaml file:

packs:
  test:
    # Specifies the output path for the generated ZIP file.
    filename: path/to/output/test.zip

    # Lists the entries that will be included in the ZIP archive.
    entries:

      # Defines the directory within the archive where files will be stored.
      - dest_dir: .

        # Specifies the files to include in the specified destination directory.
        # Files can be specified in two formats: 'source' or dictionary '{src: "", dest: ""}'.
        files:
          - ./src/main.rs # Use the original name of the source file if no destination is specified.
          # Renames the source file when adding it to the archive.
          - src: ./src/main.rs
            dest: renamed_main.rs

Dependencies

~10–20MB
~290K SLoC