Crates.io | ziply |
lib.rs | ziply |
version | 0.1.1 |
source | src |
created_at | 2024-10-10 15:12:25.88632 |
updated_at | 2024-10-22 16:24:40.144097 |
description | A simple tool to easily specify directories inside ZIP files using YAML configuration. |
homepage | https://github.com/tktk4/ziply |
repository | https://github.com/tktk4/ziply |
max_upload_size | |
id | 1403885 |
size | 39,464 |
Ziply makes specifying directories inside a ZIP simple.
cargo install ziply
pack.yaml
.ziply run
.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