Apply the TODO keyword settings.

This commit is contained in:
Tom Alexander
2023-09-06 11:00:19 -04:00
parent bdba495f69
commit 70fafd801e
4 changed files with 49 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
use std::collections::BTreeSet;
use super::FileAccessInterface;
use super::LocalFileAccessInterface;
use crate::types::Object;
@@ -8,6 +10,8 @@ use crate::types::Object;
pub struct GlobalSettings<'g, 's> {
pub radio_targets: Vec<&'g Vec<Object<'s>>>,
pub file_access: &'g dyn FileAccessInterface,
pub in_progress_todo_keywords: BTreeSet<String>,
pub complete_todo_keywords: BTreeSet<String>,
}
impl<'g, 's> GlobalSettings<'g, 's> {
@@ -17,6 +21,8 @@ impl<'g, 's> GlobalSettings<'g, 's> {
file_access: &LocalFileAccessInterface {
working_directory: None,
},
in_progress_todo_keywords: BTreeSet::new(),
complete_todo_keywords: BTreeSet::new()
}
}
}