common

package
v0.0.0-...-52c2931 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package common has functions useful across its peer modules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrimmedCommandOutput

func TrimmedCommandOutput(ctx context.Context, commandName string, args ...string) (string, error)

TrimmedCommandOutput runs a command and returns its combined stdout and stdrerr (whitespace-trimmed), timing out after a period prescribed by commandTimeout. If the command returns a non-zero exit code, returned error is an exec.ExitError.

idevice commands tend to return everything--both errors and normal output--on stderr. However, they don't advertise that as part of their contract, so we take both stdout and stderr for durability.

Types

This section is empty.

Jump to

Keyboard shortcuts

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