chore: Pass theme directly to Selectors - #49
Merged
Conversation
The `huh` library has been updated, and the way themes are handled has changed. Previously, themes were selected by a string name from a map of functions. Now, themes are directly passed as `*huh.Theme` objects. This commit updates the `rootCmd` to handle the theme selection using the new approach. It also updates the `NewSelectors` function in `selector/root.go` to accept a `huh.Theme` directly. Additionally, the `execCmd`, `logsCmd`, and `updateCmd` have been adjusted to pass the selected theme correctly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The
huhlibrary has been updated, and the way themes are handled has changed. Previously, themes were selected by a string name from a map of functions. Now, themes are directly passed as*huh.Themeobjects.This commit updates the
rootCmdto handle the theme selection using the new approach. It also updates theNewSelectorsfunction inselector/root.goto accept ahuh.Themedirectly. Additionally, theexecCmd,logsCmd, andupdateCmdhave been adjusted to pass the selected theme correctly.