Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsStdinInput ¶
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
Click to show internal directories.
Click to hide internal directories.