use prelude::v1::*;
use terminal::*;
pub struct CommandContext<'b> {
pub args: Cow<'b, str>,
pub terminal: &'b mut CharacterTerminalWriter,
pub current_path: &'b str
}
impl<'b> CommandContext<'b> {
#[inline]
pub fn get_args(&self) -> &str {
&self.args
}
#[inline]
pub fn get_terminal(&mut self) -> &mut CharacterTerminalWriter {
self.terminal
}
#[inline]
pub fn get_current_path(&self) -> &str {
&self.current_path
}
}