diff --git a/src/eval.rs b/src/eval.rs index 3f12526..8536f58 100644 --- a/src/eval.rs +++ b/src/eval.rs @@ -1,262 +1,25 @@ -use std::cmp; -use std::result; +use crate::files::Files; -use chrono::{Datelike, NaiveDate}; - -use crate::files::commands::{Birthday, Command, DoneDate, Note, Span, Spec, Task, Time}; -use crate::files::{Files, Source, SourcedCommand}; - -use self::entry::EntryMap; -pub use self::entry::{Entry, EntryKind}; +use self::command::CommandState; +use self::entry::Entries; +pub use self::entry::{Entry, EntryKind, EntryMode}; +pub use self::error::{Error, Result}; pub use self::range::DateRange; -mod date_spec; +mod command; mod delta; mod entry; -mod formula_spec; +mod error; mod range; -#[derive(Debug)] -pub enum Error { - DeltaInvalidStep { - span: Span, - start: NaiveDate, - start_time: Option