pub fn parse_with_detected(input: &str) -> Vec<HistoryEntry>Expand description
Detect shell format and parse with the appropriate parser.
Dispatches to DefaultHistoryParser, ZshHistoryParser, or
FishHistoryParser based on the content, then returns parsed entries
including any timestamps the format provides.
let entries = shellist::parse_with_detected(": 1577836800:0;git push\nls\n");
assert_eq!(entries.len(), 2);
assert_eq!(entries[0].timestamp, Some(1577836800));
assert_eq!(entries[1].command, "ls");