pipe

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(target Target, payload Payload) ([]byte, error)

Execute runs the target command with the payload piped to stdin. Returns the combined stdout+stderr output.

Types

type Payload

type Payload struct {
	File       string `json:"file"`
	Line       int    `json:"line"`
	Severity   string `json:"severity"`
	Category   string `json:"category"`
	Title      string `json:"title"`
	Detail     string `json:"detail"`
	Suggestion string `json:"suggestion,omitempty"`
	RepoRoot   string `json:"repo_root"`
}

Payload is the data sent to an external process via stdin.

type Target

type Target struct {
	Name    string   `json:"name"`
	Command string   `json:"command"`
	Args    []string `json:"args"`
	Format  string   `json:"format"` // "json", "markdown", "text"
}

Target describes an external process to pipe findings to.

Jump to

Keyboard shortcuts

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