joshuto 0.9.2

Terminal file manager inspired by ranger
use rustyline::history;

pub struct CommandLineContext {
    history: history::History,
}

impl std::default::Default for CommandLineContext {
    fn default() -> Self {
        Self {
            history: history::History::new(),
        }
    }
}

impl CommandLineContext {
    pub fn new() -> Self {
        Self::default()
    }

    pub fn history_ref(&self) -> &history::History {
        &self.history
    }

    pub fn history_mut(&mut self) -> &mut history::History {
        &mut self.history
    }
}