diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-08 20:14:32 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-08 20:14:32 +0200 |
| commit | 4acb116d78588489e79b7e17a79d4609a32fbba7 (patch) | |
| tree | a43e755c890083fec1fb86169844593cf9a70e13 /internal/flags | |
| parent | 21aa0cd0f96087fa040750643109c496e7a1b3ee (diff) | |
task 367: carry full trace filters through TUI context
Diffstat (limited to 'internal/flags')
| -rw-r--r-- | internal/flags/flags.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/flags/flags.go b/internal/flags/flags.go index af8f84c..61b5470 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -12,6 +12,7 @@ import ( "time" "ior/internal/collapse" + "ior/internal/globalfilter" ) var ( @@ -47,6 +48,7 @@ type Config struct { TUIExportEnable bool CollapsedFields []string CountField string + GlobalFilter globalfilter.Filter } // NewFlags returns a configuration instance initialized with project defaults. @@ -83,6 +85,7 @@ func (f Config) clone() Config { out.TracepointsToAttach = slices.Clone(f.TracepointsToAttach) out.TracepointsToExclude = slices.Clone(f.TracepointsToExclude) out.CollapsedFields = slices.Clone(f.CollapsedFields) + out.GlobalFilter = f.GlobalFilter.Clone() return out } |
