Help us shape the future of Go! Take the 2026 Go Developer Survey

engine

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Configuration EngineConfiguration
}

func NewEngine

func NewEngine(configuration EngineConfiguration) (*Engine, error)

/ Create a new engine instance.

func (*Engine) ExecuteAndRenderSteps

func (e *Engine) ExecuteAndRenderSteps(steps []common.Step, env map[string]string) error

Executes the steps from a scenario and renders the output to the terminal.

func (*Engine) ExecuteScenario

func (e *Engine) ExecuteScenario(scenario *common.Scenario) error

Executes a markdown scenario.

func (*Engine) InteractWithScenario added in v0.1.0

func (e *Engine) InteractWithScenario(scenario *common.Scenario) error

Executes a Scenario in interactive mode. This mode goes over each codeblock step by step and allows the user to interact with the codeblock.

func (*Engine) TestScenario

func (e *Engine) TestScenario(scenario *common.Scenario) error

Executes a scenario in testing moe. This mode goes over each code block and executes it without user interaction.

type EngineConfiguration

type EngineConfiguration struct {
	Verbose          bool
	DoNotDelete      bool
	CorrelationId    string
	Subscription     string
	Environment      string
	WorkingDirectory string
	RenderValues     bool
	ReportFile       string
}

Configuration for the engine.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL