Skip to main content

Crate run

Crate run 

Source
Expand description

§run

A simple scripting language for CLI automation, inspired by shell scripting and Makefiles.

Re-exports§

pub use cli::run_cli;
pub use config::ensure_mcp_output_dir;
pub use config::get_home_dir;
pub use config::load_config_or_exit;

Modules§

ast
cli
CLI module containing the main entry point logic.
completion
Shell completion installation and generation.
config
Configuration file (Runfile) discovery and loading.
executor
Script execution and error formatting.
interpreter
Interpreter to execute the AST
mcp
Model Context Protocol (MCP) Support for AI Agent Integration
output_file
Output file handling for MCP mode
parser
Parser implementation using pest
repl
Interactive REPL (Read-Eval-Print Loop) for the run scripting language.
transpiler
utils
Utility functions shared across modules

Functions§

fatal_error
Print an error message and exit with code 1.