1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! Pipeline:
//!
//! ```text
//! load: parser → resolver → booker → indexer ───────────► Journal
//! enrich: expander → realizer → lotter → translator (journal-global)
//! report: filter → rebalancer → sorter → commands (CLI-driven)
//! ```
//!
//! [`load`] builds a validated `Journal`. [`pipeline::enrich`] runs the
//! journal-global phases that must see every transaction (realizer and
//! translator only under `-X`; lotter needs capital accounts). The report
//! phases are driven by CLI flags and run last, per command.
pub
pub use Error;
pub use ;
/// Extension treated as a journal file when walking a directory.
/// Only `.ledger` is picked up by the recursive walk, so non-journal
/// files that happen to live in the tree (`.txt` meter readings, notes,
/// data dumps) are left alone. Explicit `-f FILE` arguments bypass this
/// filter entirely — when the user names a path directly, acc reads it
/// whatever the extension.
pub const JOURNAL_EXTENSIONS: & = &;
/// True if `path` has the recognised journal extension.
/// Used by directory walkers; never used to reject explicit `-f` paths.