run/lib.rs
1//! # run
2//!
3//! A simple scripting language for CLI automation, inspired by shell scripting and Makefiles.
4
5pub mod ast;
6pub mod cli;
7pub mod completion;
8pub mod config;
9pub mod executor;
10pub mod interpreter;
11pub mod mcp;
12pub mod output_file;
13pub mod parser;
14pub mod repl;
15pub mod transpiler;
16pub mod utils;
17
18// Re-export the main CLI entry point for use by wrapper crates
19// Note: This is defined in main.rs but we need to make it accessible
20// The actual implementation will use a separate module or we include it here
21
22/// Print an error message and exit with code 1.
23pub fn fatal_error(message: &str) -> ! {
24 eprintln!("{}", message);
25 std::process::exit(1);
26}
27
28pub use cli::run_cli;
29pub use config::{ensure_mcp_output_dir, get_home_dir, load_config_or_exit};