feat: add filecontent named mapper

This commit is contained in:
Alec Thomas
2022-11-30 22:27:36 +11:00
parent 9b08b89396
commit 919e70103f
3 changed files with 53 additions and 0 deletions
+1
View File
@@ -485,6 +485,7 @@ function `NamedMapper(name, mapper)`.
| `existingfile` | An existing file. ~ expansion is applied. `-` is accepted for stdin, and will be passed unaltered. |
| `existingdir` | An existing directory. ~ expansion is applied. |
| `counter` | Increment a numeric field. Useful for `-vvv`. Can accept `-s`, `--long` or `--long=N`. |
| `filecontent` | Read the file at path into the field. ~ expansion is applied. `-` is accepted for stdin, and will be passed unaltered. |
Slices and maps treat type tags specially. For slices, the `type:""` tag