ORE Studio 0.0.4
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
script_commands Class Reference

Commands for loading and executing shell scripts. More...

#include <script_commands.hpp>

Collaboration diagram for script_commands:
Collaboration graph

Static Public Member Functions

static void register_commands (cli::Menu &root, cli::CliSession *&active_session)
 Register script-related commands.
 

Detailed Description

Commands for loading and executing shell scripts.

Member Function Documentation

◆ register_commands()

void register_commands ( cli::Menu &  root,
cli::CliSession *&  active_session 
)
static

Register script-related commands.

Adds the 'load' command which reads a .ores script file and executes each line as a shell command via CliSession::Feed().

Parameters
rootThe root menu to add commands to.
active_sessionPointer to the active CLI session, set by repl::run() before the session loop starts.