process

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 4 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

Overview

Package process runs update commands as child processes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name string
	Args []string
}

Command 是无需 shell 解析的程序及其参数。

type CommandRunner

type CommandRunner interface {
	Run(context.Context, Command) error
}

CommandRunner 执行 Homebrew 或 Go 的更新命令。

func NewCommandRunner

func NewCommandRunner(out, errOut io.Writer) CommandRunner

NewCommandRunner 建立把子进程输出直连到 CLI 输出流的无 shell 命令执行器。

Jump to

Keyboard shortcuts

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