debug_save_lua

Function debug_save_lua 

Source
pub fn debug_save_lua(scenario_file: &str, save_file: &str) -> Result<(), Error>
Expand description

Save a txt of the created lua from the scenario_file, to help debug issues in the YAML.

§Arguments

  • scenario_file - a path to a YAML scenario file.
  • save_file - a path to a the txt output file.

§Example

// Save the lua using the `branches.yaml` scenario, to `branches.txt`
debug_save_lua("./scenarios/branches.yaml", "branches.txt")?;