do some work on jrnl

This commit is contained in:
Schrottkatze 2025-04-25 17:09:58 +02:00
parent d78a0b1c09
commit bd60655fcc
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
5 changed files with 28 additions and 342 deletions

View file

@ -1,9 +1,12 @@
use owo_colors::OwoColorize;
use std::{fs, io, path::PathBuf};
use std::{
fs, io,
path::{Path, PathBuf},
};
use crate::md::Doc;
pub fn list_entries(path: PathBuf) -> io::Result<()> {
pub fn list_entries(path: &Path) -> io::Result<()> {
let file = fs::read_to_string(path)?;
if let Some(doc) = Doc::new(&file) {