Skip to content

feat: add CUE language support for configuration, with CUE as the default format#25

Open
christophberger wants to merge 1 commit into
masterfrom
claude/add-cue-config-support-3hBok
Open

feat: add CUE language support for configuration, with CUE as the default format#25
christophberger wants to merge 1 commit into
masterfrom
claude/add-cue-config-support-3hBok

Conversation

@christophberger
Copy link
Copy Markdown
Owner

  • Add cue.go with findAndReadCueFile/readCueFile/toCueName helpers
  • Search for .cue files first at every location, fall back to .toml
  • Extend configFile struct with cueVal (cue.Value) and isCue fields
  • String() dispatches to CUE or TOML path depending on loaded format
  • Expose ConfigFileCue() alongside the existing ConfigFileToml()
  • Add test/test.cue and test/start.cue mirroring the TOML fixtures
  • Add cue_test.go covering read, search locations, and CUE-over-TOML precedence
  • Update README: document CUE as preferred format, TOML as fallback,
    updated file-name table, CUE and TOML example snippets

https://claude.ai/code/session_01NR66b82kM9oxz5zq41PjEy

…ault format

- Add cue.go with findAndReadCueFile/readCueFile/toCueName helpers
- Search for .cue files first at every location, fall back to .toml
- Extend configFile struct with cueVal (cue.Value) and isCue fields
- String() dispatches to CUE or TOML path depending on loaded format
- Expose ConfigFileCue() alongside the existing ConfigFileToml()
- Add test/test.cue and test/start.cue mirroring the TOML fixtures
- Add cue_test.go covering read, search locations, and CUE-over-TOML precedence
- Update README: document CUE as preferred format, TOML as fallback,
  updated file-name table, CUE and TOML example snippets

https://claude.ai/code/session_01NR66b82kM9oxz5zq41PjEy
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.

2 participants