patsh 0.1.2

A command-line tool for patching shell scripts
patsh-0.1.2 is not a library.
Visit the last successful build: patsh-0.2.1

patsh

version deps license ci

A command-line tool for patching shell scripts inspired by resholve

nix run github:nix-community/patsh -- -f script.sh

Usage

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:
  -f, --force    remove existing output file if needed
  -h, --help     Print help information
  -V, --version  Print version information

TODO

  • sudo/doas support
  • escaping strings
  • resolving variables
  • diagnostics for unresolved commands

Changelog

See CHANGELOG.md