outputs

package
v0.5.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanPath added in v0.5.5

func CleanPath(absPath string) string

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(rootDirectory string, info ScriptInfo, results []Result) error

WriteCSVTable creates a .csv file summarizing the results

func WriteJSONOutput

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

WriteJSONOutput creates a .json file summarizing the results

func WriteTable

func WriteTable(rootDirectory string, 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