#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

#170 in Compression

Download history 129/week @ 2024-10-07 14/week @ 2024-10-14 156/week @ 2024-10-21 7/week @ 2024-10-28 117/week @ 2024-11-11

281 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–19MB
~286K SLoC