gadgets/snapshot/process: Enable tid column when -t/--showThreads is used
@@ -35,6 +35,11 @@ type ProcessParser struct {
}
func newProcessParser(outputConfig *commonutils.OutputConfig, flags *ProcessFlags, cols *columns.Columns[types.Event], options ...commonutils.Option) (SnapshotParser[types.Event], error) {
+ if flags.showThreads {
+ col, _ := cols.GetColumn("tid")
+ col.Visible = true
+ }
+
gadgetParser, err := commonutils.NewGadgetParser(outputConfig, cols, options...)
if err != nil {
return nil, commonutils.WrapInErrParserCreate(err)
