Update README with note about existingfile and -.

This commit is contained in:
Alec Thomas
2020-04-27 09:13:11 +10:00
parent 51a1ea979a
commit d69514dd55
+6 -6
View File
@@ -370,12 +370,12 @@ Kong includes a number of builtin custom type mappers. These can be used by
specifying the tag `type:"<type>"`. They are registered with the option
function `NamedMapper(name, mapper)`.
| Name | Description |
|-------------------|---------------------------------------------------|
| `path` | A path. ~ expansion is applied. |
| `existingfile` | An existing file. ~ expansion is applied. |
| `existingdir` | An existing directory. ~ expansion is applied. |
| `counter` | Increment a numeric field. Useful for `-vvv` |
| Name | Description
|-------------------|---------------------------------------------------
| `path` | A path. ~ expansion is applied.
| `existingfile` | An existing file. ~ expansion is applied. `-` is accepted for stdin.
| `existingdir` | An existing directory. ~ expansion is applied.
| `counter` | Increment a numeric field. Useful for `-vvv`
Slices and maps treat type tags specially. For slices, the `type:""` tag