S4ZGOQWXROCH5YEQSTPDBHBZINIBIYSEIXD2YOB2N3QORQUD746AC
IA2CJ4HDSST6MPDLX2FVE2ZZR7EP5O6AIAUFGZIMWJ6NODVMKOKAC
ITAJ6L444PCEX6QTW6FDC7OU4NDM5IHY2GYSM2SMVAB3JYSDOYJQC
TUBVSWW3OQX2OJKF2F5ACCPL3G6U6SNJQ3EWOSPBCV6EIZPM2LMAC
F2QYIRKBFYFWSTB7Z5CNGSZVYI6XQO3MHPUHJLBHPGLIOG7UNVNQC
I5WVRUHGAQGWFZGX7YBKCGQKLHXZHZTCBWFIUCXVGY2WVFB77VQQC
AIF5IVL7B5S2X3N4RLS6GNKUCASQZPOH6NCVGECUFHQ5ZUJVDU6QC
SubCommand::Import(o) => run::import(&o.import_file, o.data_dir.data_dir),
SubCommand::Import(s) => match s {
Import::Histdb(o) => run::import_histdb(&o.import_file, o.data_dir.data_dir),
Import::Histfile(o) => {
run::import_histfile(&o.import_file, o.data_dir.data_dir)
}
},
pub fn import_histfile(import_file: &PathBuf, data_dir: PathBuf) -> Result<(), Error> {
#[derive(Debug)]
struct HistfileEntry {
time_finished: DateTime<Utc>,
result: usize,
command: String,
}
let histfile = std::fs::File::open(import_file).map_err(Error::OpenHistfile)?;
let reader = std::io::BufReader::new(histfile);
todo!()
}