Files
hakorune/src/main.rs

35 lines
1005 B
Rust
Raw Normal View History

/*!
Minimal CLI entry point for Nyash.
Delegates to the library crate (`nyash_rust`) for all functionality.
*/
use nyash_rust::cli::CliConfig;
use nyash_rust::config::env as env_config;
use nyash_rust::runner::NyashRunner;
/// Thin entry point - delegates to CLI parsing and runner execution
fn main() {
// Bootstrap env overrides from nyash.toml [env] early (管理棟)
env_config::bootstrap_from_toml_env();
// Parse command-line arguments
let config = CliConfig::parse();
// Create and run the execution coordinator
let runner = NyashRunner::new(config);
runner.run();
}
#[cfg(test)]
mod tests {
use super::*;
use nyash_rust::box_trait::{BoxCore, NyashBox, StringBox};
#[test]
fn test_main_functionality() {
// Smoke: library module path wiring works
let string_box = StringBox::new("test".to_string());
assert_eq!(string_box.to_string_box().value, "test");
let _ = (); // CLI wiring exists via nyash_rust::cli
}
}