aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-07-02 17:59:44 +0100
committerAkshay <[email protected]>2020-07-02 17:59:44 +0100
commit855138c18865c09cf8ee975e66e2c0763c95d605 (patch)
treed26102e5759d195f07f3bd6426ec233f6c158e6a /src
parent9017fa0c3974a15b0216e3d2643d25ef9fc21624 (diff)
add month sifting commands
Diffstat (limited to 'src')
-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 }