Medic.Cmd (Medic v0.2.0) View Source

Helpers for running commands.

Link to this section Summary

Functions

Run a command, returning trimmed output, or raising if the command fails.

Run a command, writing the description, command, and output to stdout. Returns result of System.cmd.

Run a command, writing the description, command, and output to stdout. Returns :ok or raises if the command fails.

Link to this section Functions

Specs

exec!(binary(), [binary()]) :: binary()

Run a command, returning trimmed output, or raising if the command fails.

Link to this function

run(description, command, args, opts \\ [])

View Source

Specs

run(binary(), binary(), [binary()], list()) :: {binary(), integer()}

Run a command, writing the description, command, and output to stdout. Returns result of System.cmd.

Link to this function

run!(description, command, args, opts \\ [])

View Source

Specs

run!(binary(), binary(), [binary()], list()) :: :ok

Run a command, writing the description, command, and output to stdout. Returns :ok or raises if the command fails.