diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-13 09:39:15 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-13 09:39:15 +0300 |
| commit | 50d5220ed5a2187dbf548d70f3d795a39f7bfd00 (patch) | |
| tree | 44647a70d126d789a539ddd38cc3986fcf7e61c9 /internal/eventloop_runtime.go | |
| parent | e9c747c607e14d8b8f69547aa3c0f3b079c20796 (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 'internal/eventloop_runtime.go')
0 files changed, 0 insertions, 0 deletions
