refactor: move version to Go source, extract in flake.nix

Define version once in cmd/oubliette/main.go and use builtins.match
in flake.nix to extract it. Add versioning guidelines to CLAUDE.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-14 16:56:54 +01:00
parent fc872b9c1b
commit 8e8f5366be
3 changed files with 15 additions and 1 deletions

View File

@@ -12,6 +12,8 @@ import (
"git.t-juice.club/torjus/oubliette/internal/server"
)
const Version = "0.1.0"
func main() {
configPath := flag.String("config", "oubliette.toml", "path to config file")
flag.Parse()