aboutsummaryrefslogtreecommitdiff
path: root/src/command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.rs')
-rw-r--r--src/command.rs4
1 files changed, 4 insertions, 0 deletions
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) {
18 18
19pub enum Command { 19pub enum Command {
20 Add(String, String, Option<u32>), 20 Add(String, String, Option<u32>),
21 MonthPrev,
22 MonthNext,
21 Delete, 23 Delete,
22 Blank, 24 Blank,
23} 25}
@@ -43,6 +45,8 @@ impl Command {
43 goal, 45 goal,
44 ); 46 );
45 } 47 }
48 "mprev" | "month-prev" => return Command::MonthPrev,
49 "mnext" | "month-next" => return Command::MonthNext,
46 _ => return Command::Blank, 50 _ => return Command::Blank,
47 } 51 }
48 } 52 }