outputs

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatOutput

func FormatOutput(csvText string, columns []string) string

FormatOutput formats CSV output based on column headers

func PrintToConsole

func PrintToConsole(results []Result)

PrintToConsole renders the results in markdown format to the console using Glamour

func WriteCSVTable

func WriteCSVTable(info ScriptInfo, results []Result) error

WriteCSVTable creates a .csv file summarizing the results

func WriteJSONOutput

func WriteJSONOutput(scriptPath string, results []Result) error

WriteJSONOutput creates a .json file summarizing the results

func WriteTable

func WriteTable(scriptPath string, results []Result) error

WriteTable creates a .md table summarizing the results with their output

Types

type Result

type Result struct {
	ProjectPath string
	Status      string
	StdoutText  string
	StderrText  string
	Index       int
}

Result represents the output of running a script on a project

type ScriptInfo

type ScriptInfo struct {
	Path    string   `json:"path"`
	Version string   `json:"version"`
	Output  string   `json:"output"`
	Columns []string `json:"columns"`
}

ScriptInfo represents information about a script

Jump to

Keyboard shortcuts

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