cli

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Options struct {
	SlackNotification bool   `short:"a" help:"Send a Slack notification to the configured webhook when one or more CRE is detected"`
	Disabled          bool   `short:"d" help:"Do not run community CREs"`
	Stop              string `short:"e" help:"Stop time"`
	Generate          bool   `short:"g" help:"Generate data sources template"`
	JsonLogs          bool   `short:"j" help:"Print logs in JSON format to stderr" default:"false"`
	Skip              int    `short:"k" help:"Skip the first N lines for timestamp detection"`
	Level             string `short:"l" help:"Print logs at this level to stderr"`
	Name              string `short:"o" help:"Report output name, generated data source template name, or notification context name"`
	Quiet             bool   `short:"q" help:"Quiet mode, do not print progress"`
	Rules             string `short:"r" help:"Path to a CRE rules file"`
	Source            string `short:"s" help:"Path to a data source Yaml file"`
	Format            string `short:"t" help:"Format to use for timestamps"`
	Version           bool   `short:"v" help:"Print version and exit"`
	Window            string `short:"w" help:"Reorder lookback window duration"`
	Regex             string `short:"x" help:"Regex to match for extracting timestamps"`
	AcceptUpdates     bool   `short:"y" help:"Accept updates to rules or new release"`
}

Functions

func InitAndExecute

func InitAndExecute(ctx context.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL