Files
Mike Cohen 2d4cb24ae7 Rework Shell GUI to utilize sessions. (#4839)
Implemented persistent Bash, Powershell, CMD and VQL shells

Added full screen and transcript download. The transcript allows the
user to download a textual transcript of the
interactive session.
2026-05-21 16:17:08 +10:00

20 lines
279 B
Go

package utils
import (
"context"
"www.velocidex.com/golang/vfilter"
)
func SendToOutput(
ctx context.Context,
output_chan chan vfilter.Row,
event interface{}) bool {
select {
case <-ctx.Done():
return false
case output_chan <- vfilter.Row(event):
return true
}
}