Crates.io | patsh |
lib.rs | patsh |
version | 0.2.1 |
source | src |
created_at | 2022-11-27 01:26:35.887178 |
updated_at | 2023-08-18 14:58:41.285543 |
description | A command-line tool for patching shell scripts |
homepage | https://github.com/nix-community/patsh |
repository | https://github.com/nix-community/patsh |
max_upload_size | |
id | 723544 |
size | 60,987 |
A command-line tool for patching shell scripts inspired by resholve
nix run github:nix-community/patsh -- -f script.sh
Usage: patsh [OPTIONS] <INPUT> [OUTPUT]
Arguments:
<INPUT> the file to be patched
[OUTPUT] output path of the patched file, defaults to the input path, however, --force is required to patch in place
Options:
-b, --bash <COMMAND> bash command used to list the built-in commands [default: bash]
-f, --force remove existing output file if needed
-p, --path <PATH> use something other than the PATH variable for path resolution
-s, --store-dir <PATH> path to the nix store, e.g. `builtins.storeDir` [default: /nix/store]
-h, --help Print help information
-V, --version Print version information
See CHANGELOG.md