simulate

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

Types

type Scenario

type Scenario struct {
	Workflow            string         `json:"workflow" yaml:"workflow"`
	Validate            *bool          `json:"validate,omitempty" yaml:"validate,omitempty"`
	InitialVariables    map[string]any `json:"initialVariables,omitempty" yaml:"initialVariables,omitempty"`
	Inputs              []StepInput    `json:"inputs,omitempty" yaml:"inputs,omitempty"`
	MaxSteps            int            `json:"maxSteps,omitempty" yaml:"maxSteps,omitempty"`
	ExpectFinalStep     string         `json:"expectFinalStep,omitempty" yaml:"expectFinalStep,omitempty"`
	ExpectVariables     map[string]any `json:"expectVariables,omitempty" yaml:"expectVariables,omitempty"`
	ExpectErrorContains string         `json:"expectErrorContains,omitempty" yaml:"expectErrorContains,omitempty"`
}

func DecodeScenario

func DecodeScenario(path string) (*Scenario, error)

type StepInput

type StepInput struct {
	StepID string         `json:"stepId" yaml:"stepId"`
	Data   map[string]any `json:"data" yaml:"data"`
}

Jump to

Keyboard shortcuts

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