fix(deps): update module github.com/charmbracelet/huh to v0.5.1 in go.mod #60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.4.2
->v0.5.1
Release Notes
charmbracelet/huh (github.com/charmbracelet/huh)
v0.5.1
Compare Source
v0.5.0
Compare Source
Dynamic Forms 🪄
huh?
forms can now react to changes in other parts of the form. Replace properties such asOptions
,Title
,Description
with their dynamic counterparts:OptionsFunc
,TitleFunc
, andDescriptionFunc
to recompute properties values on changes when watched variables change.Let’s build a simple state / province picker.
The
country
select will be static, we’ll use this value to recompute theoptions and title for the next input.
Define your
Select
withTitleFunc
andOptionsFunc
and bind them to the&country
value from the previous field. Whenever the user chooses a differentcountry, the
TitleFunc
andOptionsFunc
will be recomputed.Lastly, run the
form
with these inputs.Other Changes
What's Changed
CursorText
style by @nervo in https://github.com/charmbracelet/huh/pull/259WithInput
by @Delta456 in https://github.com/charmbracelet/huh/pull/271Filtering
onSelect
andMultiSelect
fields by @maaslalani in https://github.com/charmbracelet/huh/pull/283accessor
by @nervo in https://github.com/charmbracelet/huh/pull/263New Contributors
Full Changelog: charmbracelet/huh@v0.4.2...v0.5.0
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Slack.
Configuration
📅 Schedule: Branch creation - "* */8 * * *" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.