system

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package system contains wrappers for OS interactions.

Index

Constants

This section is empty.

Variables

View Source
var Cmd = osCmd{}
View Source
var NullReader = nullReader{}

Functions

func MaxCmdLen

func MaxCmdLen() int

func Sh

func Sh() (string, error)

Sh returns `sh` executable name.

Types

type Command

type Command interface {
	WithoutEnvs(...string) Command
	Run([]string, string, io.Reader, io.Writer, io.Writer) error
}

type CommandWithContext

type CommandWithContext interface {
	RunWithContext(context.Context, []string, string, io.Reader, io.Writer, io.Writer) error
}

Jump to

Keyboard shortcuts

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