pub fn add(path: Option<&Path>, line: &str) -> Result<(), ModCliError>
Append a single entry to history, creating files/dirs if necessary.