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

cli: config structure supports tagged unions #2248

Merged
merged 1 commit into from
Sep 16, 2024
Merged

cli: config structure supports tagged unions #2248

merged 1 commit into from
Sep 16, 2024

Conversation

mitchellh
Copy link
Contributor

@mitchellh mitchellh commented Sep 16, 2024

The syntax of tagged unions is tag:value. This matches the tagged union parsing syntax for keybindings (i.e. new_split:right). void-typed union fields have a special case where they accept tag alone.

I'm adding this now on its own without a user-facing feature because I can see some places we might use this and I want to separate this out. There is already a PR open now that can utilize this (#2231).

cc @jcollie

@mitchellh mitchellh force-pushed the tagged-union branch 2 times, most recently from 86aabcd to 0ce2553 Compare September 16, 2024 22:49
The syntax of tagged unions is `tag:value`. This matches the tagged
union parsing syntax for keybindings (i.e. `new_split:right`).

I'm adding this now on its own without a user-facing feature because
I can see some places we might use this and I want to separate this out.
There is already a PR open now that can utilize this (#2231).
@mitchellh mitchellh merged commit 0109cb5 into main Sep 16, 2024
34 checks passed
@mitchellh mitchellh deleted the tagged-union branch September 16, 2024 23:01
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.

1 participant