start defining update tasks

This commit is contained in:
🪞👃🪞 2025-03-24 00:14:31 +02:00
parent a38d103d7d
commit b2ed389edd
2 changed files with 24 additions and 0 deletions

View file

@ -3,7 +3,9 @@ use crate::*;
mod column; pub use self::column::*;
mod entry; pub use self::entry::*;
mod metadata; pub use self::metadata::*;
mod task; pub use self::task::*;
/// The application state.
pub struct Taggart {
pub _root: PathBuf,
pub entries: Vec<Entry>,
@ -13,6 +15,7 @@ pub struct Taggart {
pub columns: Columns<Entry, fn(&Entry)->Option<Arc<str>>, fn(&mut [Entry], usize, &str)>,
pub display: Measure<TuiOut>,
pub editing: Option<(usize, String)>,
pub tasks: Vec<Task>,
}
impl Taggart {
@ -25,6 +28,7 @@ impl Taggart {
display: Measure::new(),
editing: None,
columns: Columns::default(),
tasks: vec![],
entries,
})
}