Module script_engine

Module script_engine 

Source

Functionsยง

contains_keyword
Check if a line contains a specific keyword as a distinct token This handles comments and ensures the keyword is not part of another word
execute_line
Process and execute a single shell command line.
execute_script
line_contains_heredoc
Check if a line contains a heredoc redirection using proper lexer-based detection Returns the delimiter if found, None otherwise
starts_with_keyword
Determine whether the first token of a line equals the given keyword, ignoring leading spaces and tabs.