Patch
The [[patch]]
table defines a patch to be applied to a file. HermitGrab can parse TOML, YAML, and JSON (with comments) and apply the patch (which can also be in any of those formats). Note that comments and formatting in the original target document will be lost during this process.
Key | Type | Default | Description |
---|
source | String | Required | Path to the patch file within the HermitGrab repository. |
target | String | Required | Path to the file to be patched on the target system. Supports Handlebars and XDG variables. |
type | String | Required | The patch method. See below for possible values. |
requires | Array of Strings | [] | A list of tags that must be active for this patch to be processed. |
Patch Types
Value | Description |
---|
JsonMerge | Apply patch according to RFC 7396. |
JsonPatch | Apply patch according to RFC 6902. |
Example