summaryrefslogtreecommitdiff
path: root/internal/flags
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-06 16:55:17 +0200
committerPaul Buetow <paul@buetow.org>2026-03-06 16:55:17 +0200
commitaf72e1023b7a27c137b7ace1cf1a83108e6dc7ba (patch)
tree4ebc60b0d0278a4e1353ce7d1cdb4dd8ce37ba68 /internal/flags
parentff85779d14a70825588a80cae33d234153196162 (diff)
docs: add missing godoc comments for exported APIs (task 382)
Diffstat (limited to 'internal/flags')
-rw-r--r--internal/flags/flags.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/flags/flags.go b/internal/flags/flags.go
index f1285e8..af8f84c 100644
--- a/internal/flags/flags.go
+++ b/internal/flags/flags.go
@@ -25,6 +25,7 @@ func init() {
current.Store(&defaults)
}
+// Config captures runtime configuration parsed from CLI flags.
type Config struct {
PidFilter int
TidFilter int
@@ -85,6 +86,7 @@ func (f Config) clone() Config {
return out
}
+// Get returns a copy of the currently active runtime configuration.
func Get() Config {
cfg := current.Load()
if cfg == nil {
@@ -134,6 +136,7 @@ func SetTUIExportEnable(enabled bool) {
})
}
+// Parse parses CLI flags once and updates the current runtime configuration.
func Parse() error {
once.Do(func() {
parseErr = parse()