Documentation
¶
Overview ¶
Package scenariofile parses graith scenario TOML files. It is shared by the CLI (gr scenario start) and the daemon (scenario trigger action) so both build a protocol.ScenarioStartMsg from the same code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SessionInputs ¶
func SessionInputs(sf *File) ([]protocol.ScenarioSessionInput, error)
SessionInputs maps a parsed File's sessions to protocol.ScenarioSessionInput. agent_hooks defaults to true when unset.
Types ¶
type File ¶
type File struct {
Version int `toml:"version"`
Scenario Meta `toml:"scenario"`
Sessions []Session `toml:"sessions"`
}
File is the on-disk scenario definition.
Click to show internal directories.
Click to hide internal directories.