use clap;
use common::*;
use std::fs::File;
use std::path::PathBuf;
pub fn run(path: PathBuf) -> Result<(), clap::Error> {
let file = File::open(&path)
.map_err(|e| read_error(&path, e))?;
let data = decode(&file, &path)?;
for key in data.list() {
if !key.contains('\n') {
println!("{}", key);
}
}
Ok(())
}