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

UW-510 Add uw template render --partial switch #418

Merged
merged 13 commits into from
Feb 29, 2024

Conversation

maddenp-noaa
Copy link
Collaborator

Synopsis

A new --partial flag for the uw template render mode/action permits partial rendering of templates, i.e., unrenderable values are passed through unchanged and without error.

Old behavior:

% echo "{{ greeting }} {{ recipient }}" | greeting=Hello uw template render
[2024-02-27T22:19:18]    ERROR Required value(s) not provided:
[2024-02-27T22:19:18]    ERROR recipient

New behavior:

% echo "{{ greeting }} {{ recipient }}" | greeting=Hello uw template render --partial
Hello {{ recipient }}

Type

  • Documentation
  • Enhancement (adds a new functionality)

Impact

  • This is a non-breaking change (existing functionality continues to work as expected)

Checklist

  • I have added myself and any co-authors to the PR's Assignees list.
  • I have reviewed the documentation and have made any updates necessitated by this change.

@maddenp-noaa maddenp-noaa self-assigned this Feb 27, 2024
Copy link
Collaborator

@christinaholtNOAA christinaholtNOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Happy with whatever you decide on the question below.

@maddenp-noaa maddenp-noaa merged commit 6c0fea9 into ufs-community:main Feb 29, 2024
2 checks passed
@maddenp-noaa maddenp-noaa deleted the UW-510 branch February 29, 2024 02:29
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