Cicero Distribution
Need to pack multiple files into a distribution?
Cicero provides an API for specifying the file structure and then deferring to your functions to provide the contents:
use ;
use Distribution;
use repo_path;
Advantages to this approach:
- File structure is documented and trivially correct.
- Conflicts due to two code locations modifying the same files are practically eliminated.
- Obvious where to jump into the code to change a portion of the distribution.
- Less path wrangling. Your function has the complete path passed to it. No need to modify it further.
- Your functions become naturally testable. You can pass a temporary path (e.g. from
assert_fs) instead and assert on that.
Mind that this API may still see larger changes, as more features are implemented.