use engine::{Engine, Input, Output, Terminal, Timestamp, VirtualPath};
use os::ExitStatus;
pub trait Shell {
fn name(&self) -> &'static str;
fn engine(&self) -> &Engine;
fn actor(&self) -> engine::ActorId;
fn environment(&self) -> &os::Environment;
fn boot_time(&self) -> Timestamp;
fn hostname(&self) -> String;
fn cwd(&self) -> &VirtualPath;
fn prompt(&self, hostname: &str) -> String;
fn banner(&self) -> Option<String>;
fn set_terminal_size(&mut self, rows: u16, cols: u16);
fn execute(
&mut self,
line: &str,
stdin: &mut dyn Input,
stdout: &mut dyn Output,
stderr: &mut dyn Output,
) -> ExitStatus;
fn execute_with_terminal(
&mut self,
line: &str,
stdin: &mut dyn Input,
stdout: &mut dyn Output,
stderr: &mut dyn Output,
terminal: Option<&mut dyn Terminal>,
) -> ExitStatus;
fn take_exit_status(&mut self) -> Option<ExitStatus>;
fn history(&self) -> &[String];
fn record_history(&mut self, line: &str);
fn needs_continuation(&self, input: &str) -> bool {
let _ = input;
false
}
}