Implement Slack flavored markdown reporting for report tasks
This commit is contained in:
parent
2c25aabc6a
commit
11fbaa582e
8 changed files with 715 additions and 2 deletions
16
src/main.rs
16
src/main.rs
|
|
@ -1,3 +1,15 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
mod things;
|
||||
mod reporter;
|
||||
|
||||
use reporter::{MarkdownReporter, Reporter};
|
||||
|
||||
use things::task::Task;
|
||||
use anyhow::Result;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let today = Task::today()?;
|
||||
let reported: Vec<Task> = today.into_iter().filter(|task| task.has_tag("Report")).collect();
|
||||
println!("{}", MarkdownReporter.report(reported));
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue