summaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-13 09:39:15 +0300
committerPaul Buetow <paul@buetow.org>2026-05-13 09:39:15 +0300
commit50d5220ed5a2187dbf548d70f3d795a39f7bfd00 (patch)
tree44647a70d126d789a539ddd38cc3986fcf7e61c9 /go.mod
parente9c747c607e14d8b8f69547aa3c0f3b079c20796 (diff)
replace global flags singleton with Parse() returning Config value
Remove the global atomic.Pointer[Config], sync.Once, and parseErr fields from the flags package. Parse() now returns (Config, error) directly, eliminating all global-state accessors (Get, SetPidFilter, SetTidFilter, SetTUIExportEnable, setCurrent, updateCurrent). The internal parse logic is factored into parseFromFlagSet so tests can inject a fresh FlagSet without touching os.Args or package-level state. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions