mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-31 17:03:30 +02:00
refactor to a library, add integration tests
This commit is contained in:
parent
9f310c76bd
commit
d0744d5178
8 changed files with 56 additions and 59 deletions
18
src/lib.rs
Normal file
18
src/lib.rs
Normal file
|
@ -0,0 +1,18 @@
|
|||
#![recursion_limit = "1024"]
|
||||
|
||||
extern crate chrono;
|
||||
extern crate uuid;
|
||||
#[macro_use]
|
||||
extern crate error_chain;
|
||||
|
||||
mod tdb2;
|
||||
mod task;
|
||||
mod errors;
|
||||
|
||||
use std::io::BufRead;
|
||||
pub use task::*;
|
||||
pub use errors::*;
|
||||
|
||||
pub fn parse(filename: &str, reader: impl BufRead) -> Result<Vec<Task>> {
|
||||
Ok(tdb2::parse(filename, reader)?)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue