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

app ziply

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

3 releases

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

#117 in Compression

Download history 135/week @ 2024-10-09 105/week @ 2024-10-16 63/week @ 2024-10-23 3/week @ 2024-10-30

306 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

~9–19MB
~287K SLoC