Crates.io | cmd2zip |
lib.rs | cmd2zip |
version | 1.1.0 |
source | src |
created_at | 2023-07-08 11:46:52.244158 |
updated_at | 2023-07-09 15:43:27.880248 |
description | Runs a set of commands as child-processes, capturing their output as files into a zip archive. |
homepage | https://docs.rs/cmd2zip |
repository | https://github.com/Longor1996/cmd2zip |
max_upload_size | |
id | 911436 |
size | 47,332 |
Runs a set of commands as child-processes, capturing their output as files into a zip archive.
Because temporary files are annoying.
Usage: cmd2zip.exe [OPTIONS] [COMMANDS]...
Arguments: [COMMANDS]... The commands to run; allows for glob-expansion, even on Windows!
Options: -o, --output
[default: output.zip]
--cmd-prefix <PREFIX>
Prefix to be prepended to all commands
--cmd-postfix <POSTFIX>
Postfix to be appended to all commands
-p, --name-pattern <NAME_PATTERN> Regex pattern to extract a filename from each command.
Internally uses the <https://docs.rs/regex/latest/regex/index.html#syntax> crate.
A typical pattern would be `([\w-]+)\.EXT$`.
-r, --name-replace <NAME_REPLACE> Regex replacement string.
If this option is not set, the *entire* matched pattern is used.
- `$N` is replaced with the matching positional capture.
- `$NAME` is replaced with the matching named capture.
A typical replacement would be `$1.EXT`.
--name-prefix <NAME_PREFIX>
Prefix to prepend to all generated filenames.
Applied AFTER regex match/replace.
--name-postfix <NAME_POSTFIX>
Postfix to append to all generated filenames.
Applied AFTER regex match/replace and prefix.
-t, --threads
[env: RAYON_NUM_THREADS=]
[default: 0]
-a, --append
Append to the zip archive specified by output
, instead of replacing it
-h, --help Print help (see a summary with '-h')