guard

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheReport

type CacheReport struct {
	Guard string      `json:"guard"`
	RanAt string      `json:"ran_at"`
	Steps []CacheStep `json:"steps"`
}

type CacheStep

type CacheStep struct {
	Index       int                 `json:"index"`
	Name        string              `json:"name"`
	ResolvedCmd *string             `json:"resolved_cmd"`
	Status      string              `json:"status"`
	ExitCode    int                 `json:"exit_code"`
	Stderr      string              `json:"stderr"`
	Errors      []runner.ErrorEntry `json:"errors,omitempty"`
	DurationMS  int64               `json:"duration_ms"`
}

type GuardStep

type GuardStep struct {
	Index       int                 `json:"index"`
	Name        string              `json:"name"`
	ResolvedCmd *string             `json:"resolved_cmd"`
	Status      string              `json:"status"`
	ExitCode    int                 `json:"exit_code"`
	Stderr      string              `json:"stderr"`
	Errors      []runner.ErrorEntry `json:"errors,omitempty"`
	DurationMS  int64               `json:"duration_ms"`
}

type Report

type Report struct {
	Guard      string      `json:"guard"`
	Overall    string      `json:"overall"`
	ExitCode   int         `json:"exit_code"`
	DurationMS int64       `json:"duration_ms"`
	RanAt      string      `json:"ran_at"`
	Steps      []GuardStep `json:"steps"`
}

type Runner

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

func New

func New(cfg *config.Config, repoRoot string, tasks *runner.Runner) *Runner

func (*Runner) Run

func (r *Runner) Run(name string, opts runner.Options) (Report, error)

Jump to

Keyboard shortcuts

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