Export metadata when listing elements
On the existing command arkindex elements list
, we need a new optional flag --with-metadata
(disabled by default) that would export all metadatas from elements being listed.
We don't want multiple lines there (contrary to classes), instead adding one column for each metadata key. If an element does not have the relevant metadata for that key, it's simply empty.
To do that, you'll need to know all the metadata keys before rendering the CSV output. You need to list all elements in memory, then list all their metadatas, create one column per metadata, and update the serializer code.
Good luck !
Please update the doc too...