Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting support_templates_dir additionally to templates_dir #326

Merged
merged 4 commits into from
Jan 23, 2024

Conversation

swuerl
Copy link
Contributor

@swuerl swuerl commented Jan 18, 2024

Using an external template for support code is currently not possible, as it was explicitly disabled to fix a bug:
c7db1bd

I was working around that bug in the past, by just calling nunavut twice, for support and templates, e.g.:

nnvg --templates my_template/support --target-language c --generate-support never ...
nnvg --templates my_template/templates --target-language c --generate-support only ...

Since version 2.1.0, this is not possible anymore. This PR implements this use-case properly again, by adding an argument --support-templates to separate support from struct serialization. So now it becomes:

nnvg --support-templates my_template/support  --templates my_template/templates --target-language c ...

Copy link

sonarcloud bot commented Jan 18, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@thirtytwobits
Copy link
Member

Sorry for the delay on this. I'm looking at the PR now...

@thirtytwobits
Copy link
Member

This is great. I'll open an issue to refactor that constructor as it's gotten too complicated and should take a configuration object instead. Thanks @swuerl

@thirtytwobits thirtytwobits merged commit cac61d6 into OpenCyphal:main Jan 23, 2024
181 of 182 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants