stdinhandler

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStdinInput

func IsStdinInput(path string) bool

IsStdinInput checks if the input is stdin (represented by "-")

Types

type StdinHandler

type StdinHandler struct {
	// contains filtered or unexported fields
}

StdinHandler handles reading data from stdin

func NewStdinHandler

func NewStdinHandler() *StdinHandler

NewStdinHandler creates a new stdin handler

func (*StdinHandler) Cleanup

func (h *StdinHandler) Cleanup() error

Cleanup removes all temp files created from stdin

func (*StdinHandler) GetTempFiles

func (h *StdinHandler) GetTempFiles() []string

GetTempFiles returns the list of temp files created from stdin

func (*StdinHandler) ResolveFiles

func (h *StdinHandler) ResolveFiles(filePaths []string, format string) ([]string, error)

ResolveFiles takes a list of file paths and resolves any stdin inputs by reading from stdin and writing to a temp file

Jump to

Keyboard shortcuts

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