INNER CODE UNIT · Rust
new
databricks/click · src/command_processor.rs:151
pub fn new(env: Env, hist_path: PathBuf) -> CommandProcessor {
let commands = CommandProcessor::get_command_vec();
let env = Rc::new(env);
let rl = get_editor(env.get_rustyline_conf(), &hist_path);
CommandProcessor {
env,
rl,
hist_path,
commands,
}
}
#[cfg(test)]
fn new_with_commands(
env: Env,
hist_path: PathBuf,
commands: Vec<Box<dyn Cmd>>,
) -> CommandProcessor {