Documentation
¶
Overview ¶
Package rtkcompat loads rtk's TOML filter definitions and converts them to native gortk Specs. It lets gortk ingest rtk's built-in filters — and any community filters in the same format — verbatim, instead of re-porting them.
This is the ONLY part of gortk that depends on a TOML parser; the core package stays dependency-free. Import this package only if you want rtk-TOML ingestion.
Field mapping (rtk -> gortk.Spec):
match_command -> Match.CommandRegex
strip_ansi -> Lines.StripANSI
strip_lines_matching -> Lines.DropRegexps
keep_lines_matching -> Lines.KeepRegexps
truncate_lines_at -> Lines.TruncateLinesAt
max_lines -> Limit.MaxLines (Keep "tail")
head_lines/tail_lines -> Limit.Keep "head"/"tail"
on_empty -> EmptyText
match_output -> MatchOutput
filter_stderr -> Lines.Source ("both" when true, else "stdout")
description, replace -> dropped (replace is unsupported by gortk)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
rtk2json
command
Command rtk2json converts rtk TOML filter files into gortk JSON Specs.
|
Command rtk2json converts rtk TOML filter files into gortk JSON Specs. |
|
rtksync
command
Command rtksync imports rtk's entire TOML filter catalog into specs/rtk.json.
|
Command rtksync imports rtk's entire TOML filter catalog into specs/rtk.json. |
Click to show internal directories.
Click to hide internal directories.