ExBashkit.Result (ExBashkit v0.1.2)

Copy Markdown View Source

The outcome of an ExBashkit.exec/1 call.

Mirrors bashkit's ExecResult. A non-zero exit_code is a normal, successful return — the script ran and chose to fail, just like a real shell.

Fields

  • :stdout - captured standard output
  • :stderr - captured standard error
  • :exit_code - the script's exit status (0 is success)

Summary

Types

t()

@type t() :: %ExBashkit.Result{
  exit_code: integer(),
  stderr: String.t(),
  stdout: String.t()
}