-
Notifications
You must be signed in to change notification settings - Fork 1
refactor: consolidate version packages #24
Copy link
Copy link
Closed
Description
Summary
Create a shared version package with consistent naming for build information.
Current State
cfl (tools/cfl/internal/version/version.go - 9 lines):
var (
Version = "dev"
Commit = "none"
Date = "unknown"
)jtk (tools/jtk/internal/version/version.go - 19 lines):
var (
Version = "dev"
Commit = "none"
BuildDate = "unknown" // Different name!
)
func Full() string { ... }
func Short() string { ... }Proposed Changes
- Create
shared/version/version.gowith standardized variable names - Include helper functions (
Full(),Short()) from jtk - Update ldflags in both tools' build configs to use consistent names
- Delete tool-specific version packages
Standardized Names
var (
Version = "dev"
Commit = "none"
BuildDate = "unknown"
)Impact
~25 lines consolidated, consistent version output across tools
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels