mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Add documentation for #2362
Document the new `set-date` addon action introduced by #2362. Signed-off-by: martin f. krafft <madduck@madduck.net>
This commit is contained in:
@ -162,8 +162,8 @@ You find the complete structure below. It consists of these parts:
|
|||||||
- `newItems`: declares files relative to `OUTPUT_DIR` that should be
|
- `newItems`: declares files relative to `OUTPUT_DIR` that should be
|
||||||
processed as new uploads
|
processed as new uploads
|
||||||
|
|
||||||
The `commands` allows to set tags, fields and other things. All parts
|
The `commands` allows to set the item date, tags, fields and other things. All
|
||||||
are optional, you don't need to return the complete structure. Just
|
parts are optional, you don't need to return the complete structure. Just
|
||||||
returning `commands` or only `files` is ok.
|
returning `commands` or only `files` is ok.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
@ -15,6 +15,7 @@ object AddonOutputExample extends Helper {
|
|||||||
BackendCommand.ItemUpdate(
|
BackendCommand.ItemUpdate(
|
||||||
itemId = id("XabZ-item-id"),
|
itemId = id("XabZ-item-id"),
|
||||||
actions = List(
|
actions = List(
|
||||||
|
ItemAction.SetDate(1699632496000),
|
||||||
ItemAction.AddTags(Set("tag1", "tag2")),
|
ItemAction.AddTags(Set("tag1", "tag2")),
|
||||||
ItemAction.ReplaceTags(Set("tagX", "tagY")),
|
ItemAction.ReplaceTags(Set("tagX", "tagY")),
|
||||||
ItemAction.RemoveTags(Set("tag0", "tag9")),
|
ItemAction.RemoveTags(Set("tag0", "tag9")),
|
||||||
|
Reference in New Issue
Block a user