Search documentation of Plushie

# Plushie.Automation.Runner (Plushie v0.7.2)

Copy Markdown View Source

Executes parsed `.plushie` automation files.

Starts a real Plushie app, attaches a `Plushie.Automation.Session`, runs each instruction sequentially, and collects results.

The parsed automation header is forwarded to `app.init/1` under the `:script` option so apps can opt into script-specific setup if they want to.

## Summary

### Functions

run(map, opts \\ [])

Runs a parsed automation file.

## Functions

# run(map, opts \\ [])

    @spec run(script :: Plushie.Automation.File.t(), opts :: keyword()) ::
      :ok | {:error, [{Plushie.Automation.File.instruction(), String.t()}]}

Runs a parsed automation file.

Returns `:ok` on success or `{:error, failures}` where failures is a list of `{instruction, reason}` tuples.