guard

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 13 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 Classify

func Classify(harness string, rc int, stdout []byte) string

func ClaudePlaceholders

func ClaudePlaceholders(raw []string, environ []string) []string

ClaudePlaceholders lets doctor inspect exec-form arguments as Claude would. Runtime direct arguments have already been processed by the caller.

func ExpandWords

func ExpandWords(words []string) ([]string, error)

func ExpandWordsIn

func ExpandWordsIn(raw []string, environ []string) ([]string, error)

func Name

func Name(words []string, matcher string, position int) string

func Quote

func Quote(s string) string

func ShellJoin

func ShellJoin(args []string) string

func Words

func Words(command string) ([]string, error)

Words returns unexpanded shell words only when executing them directly preserves the shell's behavior. Everything else remains a shell command.

Types

type Result

type Result struct {
	Stdout, Stderr []byte
	RC             int
	Duration       time.Duration
	LaunchErr      error
	CaptureErr     error
}

func Run

func Run(args []string, input []byte) Result

Jump to

Keyboard shortcuts

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