pub fn save(path: Option<&Path>, entries: &[String]) -> Result<(), ModCliError>
Save all history lines to the target file, creating directories if needed.