pub mod commands;
pub mod repl;
pub mod state;
pub use repl::Repl;
pub use state::SessionState;
use entrenar_common::Result;
pub fn start() -> Result<()> {
let mut repl = Repl::new()?;
repl.run()
}
pub fn start_with_state(state: SessionState) -> Result<()> {
let mut repl = Repl::with_state(state)?;
repl.run()
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_session_state_default() {
let state = SessionState::default();
assert!(state.loaded_models().is_empty());
assert!(state.history().is_empty());
}
}