aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2024-08-13 21:53:20 -0500
committerjvech <jmvalenciae@unal.edu.co>2024-08-13 21:53:20 -0500
commitc9b99b6f3e52f818f80851247b3a55403329dfad (patch)
tree210d110f0e518546160ca9a96f1029abffeeb0f4 /src/main.rs
parentb0a48708ff1f414d27d41a801d675be36485c7b0 (diff)
feat: month filter addedHEADmain
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index c4acc8b..6fda51f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -27,12 +27,12 @@ fn main() -> Result<()> {
register.add_register(&datapath)?;
},
- Commands::View {agent, filter_note, history, total} => {
+ Commands::View {agent, filter_note, history, total, month} => {
let datapath = cli.database_path.expect("database path not found");
let conn = Connection::open(&datapath)?;
match (history, total) {
- (true, false) => Database::view_history(conn, agent, filter_note)?,
+ (true, false) => Database::view_history(conn, agent, filter_note, month)?,
(false, true) => Database::view_total(conn)?,
(false, false) => Database::view_total(conn)?,
(true, true) => unreachable!()
Feel free to download, copy and edit any repo