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 ¶
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.
Click to show internal directories.
Click to hide internal directories.