Module script

Module script 

Source
Expand description

Script mode: parse a file of REPL commands and execute them. Script mode: read commands from a file and execute them.

Script mode is a dual-use feature. For users, it provides a way to pre-configure the radio by saving a sequence of commands in a file and replaying them (contest prep, net startup, morning checks). For tests, it is the vehicle that lets integration tests drive the full REPL loop from a file and capture output via subprocess spawning.

§Format

  • # at line start: comment, skipped
  • Blank lines: skipped
  • Leading and trailing whitespace on each command line is trimmed
  • Everything else: sent through the same dispatcher as interactive input
  • exit or quit ends the script and exits the REPL

Structs§

Script
Parsed lines from a script file, with comments and blanks removed.