Documentation
¶
Index ¶
Constants ¶
View Source
const (
EnvMessages = "CCSESSION_PREVIEW_MESSAGES"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSONMessage ¶ added in v1.0.0
type JSONPreview ¶ added in v1.0.0
type JSONPreview struct {
Source string `json:"source"`
ID string `json:"id"`
Locator string `json:"locator"`
CWD string `json:"cwd"`
CWDExists bool `json:"cwd_exists"`
CWDUnknown bool `json:"cwd_unknown"`
Label string `json:"label"`
StartedAt string `json:"started_at"`
LastActivity string `json:"last_activity"`
TotalMessages int `json:"total_messages"`
Messages []JSONMessage `json:"messages"`
LoadError string `json:"load_error,omitempty"`
}
type Options ¶ added in v0.1.4
type Options struct {
Query string
Regex bool
Locator string
JSON bool
Color string
NoColor bool
MessageLimit int
Out io.Writer
}
Options controls preview rendering. Query, when non-empty, highlights its matches in the message bodies; Regex treats Query as a regular expression (mirroring grep.Options).
Click to show internal directories.
Click to hide internal directories.