use crate::prelude::*; use nu_engine::Command; use nu_errors::ShellError; use parking_lot::Mutex; use std::sync::atomic::AtomicBool; pub struct RunnableContext { pub input: InputStream, pub shell_manager: ShellManager, pub host: Arc>>, pub ctrl_c: Arc, pub current_errors: Arc>>, pub scope: Scope, pub name: Tag, } impl RunnableContext { pub fn get_command(&self, name: &str) -> Option { self.scope.get_command(name) } }