Skip to content

Conversation

maddenp-cu
Copy link
Collaborator

Synopsis

Fixes #790 .

Previous behavior example:

$ echo 'n: !int "{{ 1 + 2 }}"' | uw config realize --input-format yaml --output-format yaml
n: 3

New behavior example:

$ echo 'n: !int "{{ 1 + 2 }}"' | uw config realize
n: 3

You can still be explicit as needed, of course:

$ echo "&nl n = 3 /" | uw config realize --input-format nml
nl:
  n: 3

And deducing config format from filename extensions still works as expected, e.g.

$ echo "&nl n = 3 /" | uw config realize --input-format nml -o a.nml
$ cat a.nml
&nl
    n = 3
/

Type

  • Documentation
  • Enhancement (adds 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-cu maddenp-cu self-assigned this Sep 10, 2025
@maddenp-cu maddenp-cu marked this pull request as ready for review September 10, 2025 22:22
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.

This is a really nice change, especially when it's typically what I want. Thanks!

@maddenp-cu maddenp-cu merged commit f94a6dc into ufs-community:main Sep 11, 2025
2 checks passed
@maddenp-cu maddenp-cu deleted the gh-790-default-to-yaml branch September 11, 2025 03:33
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.

Consider making --input-format / --output-format default to "yaml"
3 participants