INNER CODE UNIT · Rust
Err
databricks/click · src/command_processor.rs:259
if let Err(e) = self.rl.save_history(self.hist_path.as_path()) {
println!("Couldn't save command history: {e}");
}
env.stop_all_forwards();
}
/// Process the line. Returns the result of finish_output on the writer
pub fn process_line(&mut self, line: &str, mut writer: ClickWriter) -> Option<Vec<u8>> {
if line.is_empty() {
return writer.finish_output();
}
let mut first_non_whitespace = 0;
for c in line.chars() {
if !c.is_whitespace() {
break;
}
first_non_whitespace += 1;
}