Minga.Editing.Formatter.Failure (Minga v0.1.0)

Copy Markdown View Source

Nonzero external formatter result with captured streams kept separate.

Summary

Functions

Builds a useful user-facing message without combining the captured stream values.

Builds a nonzero formatter result from the exit status and captured streams.

Types

t()

@type t() :: %Minga.Editing.Formatter.Failure{
  exit_code: non_neg_integer(),
  stderr: String.t(),
  stdout: String.t()
}

Functions

message(failure)

@spec message(t()) :: String.t()

Builds a useful user-facing message without combining the captured stream values.

new(exit_code, stdout, stderr)

@spec new(non_neg_integer(), String.t(), String.t()) :: t()

Builds a nonzero formatter result from the exit status and captured streams.