Closed rlipscombe closed 10 years ago
Oh, OK. It's done by the rebar plugin.
But we don't use "rebar generate" -- we're using relx. We could write a relx plugin for cuttlefish, but until then:
{_, Mappings, _} = cuttlefish_schema:files(filelib:wildcard("path/to/*.schema")).
ok = cuttlefish_conf:generate_file(Mappings, "path/to/generated.conf").
Yeah, that's how. I'll add it to the documentation.
The wiki talks about generating default config files, but doesn't say how to actually do this.