command

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package command provides helpers to execute external commands with logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireCommand

func RequireCommand(t *testing.T, command string)

RequireCommand skips the test if the specified command is not found in PATH. Use this to skip tests that depend on external tools like protoc, cargo, or taplo, so that `go test ./...` will always pass on a fresh clone of the repo.

func Run

func Run(command string, arg ...string) error

Run executes a program (with arguments) and captures any error output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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