From 855138c18865c09cf8ee975e66e2c0763c95d605 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 2 Jul 2020 22:29:44 +0530 Subject: add month sifting commands --- src/command.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/command.rs b/src/command.rs index 5391266..c4f20fc 100644 --- a/src/command.rs +++ b/src/command.rs @@ -18,6 +18,8 @@ fn call_on_app(s: &mut Cursive, input: &str) { pub enum Command { Add(String, String, Option), + MonthPrev, + MonthNext, Delete, Blank, } @@ -43,6 +45,8 @@ impl Command { goal, ); } + "mprev" | "month-prev" => return Command::MonthPrev, + "mnext" | "month-next" => return Command::MonthNext, _ => return Command::Blank, } } -- cgit v1.2.3