compliance-trestle
compliance-trestle copied to clipboard
Methods and configuration to match and have default `splits`
Issue description / feature objectives
Looking a methods such as ssp-assemble, they will leverage load-distributed, however, they will only write one coherent document which may not make sense to the end user.
What a user would like is either:
- Split to a configurable standard
- split to what currently exists in the directory that is being read.
That implies a few pieces of functionality:
- A function which given a model directory, discovers what the 'split element path' would be. e.g. given
ssp.json
ssp/metadata.json
the split element path would be ssp.metadata
.
-
a method given a named model location, an in-memory object representation, and the split element path write out the split directory tree. Note technically this is available from the repository api, however, refactoring may be useful
-
Presuming we do not have an existing
element-string
lookup, from the config file, the split-element-path and apply (2) rather than writing out the whole file by default.