Closed
Description
There is no method to customize gen-xxx
commands invoked by gen-project. For example, we cannot pass --no-metaclasses
to gen-owl
via the Makefile. Here in this project, I suggest solving the problem using environment variables like #43 as this scales well.
Activity
noelmcloughlin commentedon Feb 20, 2023
See #52 for proposed solution (for gen-owl)
cmungall commentedon Mar 16, 2023
Actually, there is a way to pass these in
Unfortunately it's not obvious as if you do
gen-metadata
from the command line the formatting is messed up; see:So what you want is:
config.yaml:
the whole system is a little unsatisfying - in general in linkml we eat our own dogfood, and we would have a complete schema for all configuration. However, the click annotations are the source-of-truth for anything CLI, so the yaml here is a kind of jury rigged layer on top of multiple separate click files. I'm not sure there is a much better way to do it without a big revamp. But it could certainly be better documented!
noelmcloughlin commentedon Mar 18, 2023
Thanks. Do you mean we can drop
config.yaml
into linkml-project-cookiecutter home directory (and github-actions workflow directory) and gen-xxx will read that file?nlharris commentedon Aug 15, 2024
Can this be merged or closed?
noelmcloughlin commentedon Aug 17, 2024
Yes thanks - fixed in #67