outputs

package
v0.3.38 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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