NAT Playground use ui for log

This commit is contained in:
2022-06-27 18:38:20 +00:00
parent a02ed11898
commit 5175622374
3 changed files with 14 additions and 6 deletions

View File

@@ -188,6 +188,17 @@
(flatten (for name names
(CreateEntry name))))
(defCommand CreateMediaEntry [medium (Text null) name (Text null)]
[(archive.createEntry ->e {
(addComponent archive e Name name)
(addTags archive e ["media" medium])})])
(defCommand CreateMediaEntries [medium (Text null) names (VarText null)]
// createEntry returns a list, so these lists must be flattened
(flatten (for name names
(CreateEntry name))))
// TODO use Tag and VarTag arg types for AddTags and RemoveTags
(defCommand AddTags [entries (SelectedEntries 1 null)
tagsToAdd (VarText null)]
(doFor e entries