Skip to content

Conversation

@tonyandrewmeyer
Copy link
Contributor

@tonyandrewmeyer tonyandrewmeyer commented Feb 7, 2026

This PR migrates built-in configuration presets from hard-coded Go structs to embedded YAML files, making presets easier to edit and ship while keeping them available at runtime. This should also make it simpler for users to develop their own config by starting from an appropriate preset.

Changes:

  • Added YAML preset definitions under presets/ and embedded them into the binary via go:embed.
  • Updated preset loading logic in internal/config to enumerate/read presets from the embedded filesystem.
  • Added unit tests to validate preset discovery and key preset contents; updated CLI/help text and snap packaging to reflect the expanded preset set.
  • Made channel optional for snaps, defaulting to latest/stable.

Fixes #103.

tonyandrewmeyer and others added 3 commits February 7, 2026 19:59
Copy link
Contributor

@dimaqq dimaqq left a comment

Choose a reason for hiding this comment

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

I didn't review, just commenting to show that I really appreciate this change! ❤️

Copy link
Collaborator

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

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

One other comment: I'd expect to see a few minor updates to README.md mentioning this where it talks about presets.

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.

Load built-in presets from YAML rather than Go code

3 participants