Vibe.Script (vibe v0.2.2)

Copy Markdown View Source

Run Livebook-style Elixir scripts, including Mix.install/2.

By default scripts run in a disposable BEAM OS process. Use runtime: :standalone to evaluate through Vibe.ScriptRuntime.Standalone, which keeps Livebook-like binding/env state in a child BEAM process.

Summary

Types

result()

@type result() :: %{
  status: :ok | :error | :timeout,
  exit_status: non_neg_integer() | nil,
  output: String.t()
}

Functions

run(path, opts \\ [])

@spec run(
  Path.t(),
  keyword()
) :: result()

run_string(source, opts \\ [])

@spec run_string(
  String.t(),
  keyword()
) :: result()