validation

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

validation/validation.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetCommandRunner

func ResetCommandRunner()

ResetCommandRunner restores the default runner

func SetCommandRunner

func SetCommandRunner(runner CommandRunner)

SetCommandRunner allows tests to inject a mock runner

func VerifySystemRequirements

func VerifySystemRequirements() error

VerifySystemRequirements checks if all required system tools are installed

Types

type CommandRunner

type CommandRunner interface {
	Run(name string, args ...string) ([]byte, error)
}

CommandRunner defines an interface for executing commands

type RealCommandRunner

type RealCommandRunner struct{}

RealCommandRunner implements CommandRunner using os/exec

func (*RealCommandRunner) Run

func (r *RealCommandRunner) Run(name string, args ...string) ([]byte, error)

Run executes a command and returns its output

Jump to

Keyboard shortcuts

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