ziply

Crates.ioziply
lib.rsziply
version0.1.1
sourcesrc
created_at2024-10-10 15:12:25.88632
updated_at2024-10-22 16:24:40.144097
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
size39,464
tkr (tkr6)

documentation

README

Ziply makes specifying directories inside a ZIP simple.

Installation

cargo install ziply

Quick Start

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

Configuration

Here is an example of a pack.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: 23

cargo fmt