Add link/unlink elements command
Closes https://gitlab.com/arkindex/cli/-/issues/26
(1) existing folder element
- put elements without a folder type parent element into it > no real easy way to get this exactly so > put stray pages (page elements with no parent) into it
✅ - move selected / from list elements into it
✅
(2) create a new folder element
- move elements in the selection / a list into it
✅ - put stray pages (page elements with no parent) into it
✅
CHILDREN:
- one uuid (command line)
✅ - list of uuids (file)
✅ - from selection (ListSelection)
✅
CHECK:
- elements and parent element are in the same corpus
✅ - parent element exists (if not new) > gets checked at the same time as the previous check happens
✅ - can't delete parent link if it's the only link to a folder type element (do not create stray direct children of the corpus)
✅ + option to do that anyway✅ - check that parent element is folder type > would make sense to avoid nonsense stuff although it can easily be undone with unlink, but I don't think I can get that information actually ?
❌
Edited by Bastien Abadie