ziply

Crates.ioziply
lib.rsziply
version0.1.2
sourcesrc
created_at2024-10-10 15:12:25.88632
updated_at2024-11-13 13:24:39.263338
descriptionA simple tool to easily specify directories inside ZIP files using YAML configuration.
homepagehttps://github.com/tktk4/ziply
repositoryhttps://github.com/tktk4/ziply
max_upload_size
id1403885
size38,790
(tkr66)

documentation

README

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
Commit count: 27

cargo fmt