processor

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFlags added in v0.8.1

func ParseFlags(args []string, stderr io.Writer) (config.Defaults, []string, error)

ParseFlags parses command-line arguments and returns a populated config.Defaults along with any remaining positional file paths. Callers can pass the result directly to RunWithOptions after opening the input files.

func Run

func Run(args []string, stdin io.Reader, stdout, stderr io.Writer) int

func RunContext

func RunContext(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) int

RunContext parses args, opens any file paths, and runs the pipeline. It is a convenience wrapper around ParseFlags and RunWithOptions, suitable for use in tests and as a backward-compatible entry point.

func RunWithOptions added in v0.8.1

func RunWithOptions(ctx context.Context, cfg config.Defaults, inputs []io.ReadCloser, stdout, stderr io.Writer) int

RunWithOptions runs the processing pipeline with pre-parsed options and pre-opened input readers. The caller is responsible for closing the readers. This is the primary library entry point for callers that want to supply their own flag parsing or file opening logic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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