≫ mktree
mktree is an s-expression based configuration language for generating boilerplate files and directories.
With mktree, writing a code generator is as easy as declaring the filesystem layout:
; file: layout.tree
(dir "users/%(username)"
(file "README.md"
(@contents "This directory belongs to %(username)")
(@perms 0666)))
And running mktree
:
mktree -vars=username=$(whoami) layout.tree