Runlet (runlet v1.2.7)

View Source

Summary

Types

t()

@type t() :: %Runlet{
  aliases: Runlet.CLI.t() | nil,
  append: nil | binary() | Runlet.CLI.t(),
  pipeline: binary(),
  state: any(),
  stdout: (String.t() -> (Runlet.Event.t() | String.t() -> any())) | nil,
  uid: binary()
}

Functions

compile(env)

@spec compile(t()) ::
  {:ok, %{code: [Runlet.CLI.t()], jobctrl: boolean()}} | {:error, String.t()}

exec(env, pipeline)

@spec exec(t(), [Runlet.CLI.t()]) :: :ok

fork(initial_env)

@spec fork(t()) :: {:ok, pid()} | {:error, String.t()}

jobctrl?(arg1)

start_link()