diff options
author | Akshay <[email protected]> | 2020-07-04 15:57:09 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-07-04 15:57:09 +0100 |
commit | d51b80c27041513df86116c1c5036b9052d65f2f (patch) | |
tree | 453eda2dbe60f6d8a62d6f63633bc3125ed2fe27 /src/command.rs | |
parent | b1b8369fe5621ff5b2222977bb357bec15a911e2 (diff) |
add quit command
Diffstat (limited to 'src/command.rs')
-rw-r--r-- | src/command.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command.rs b/src/command.rs index f94eab8..d25608f 100644 --- a/src/command.rs +++ b/src/command.rs | |||
@@ -21,6 +21,7 @@ pub enum Command { | |||
21 | MonthPrev, | 21 | MonthPrev, |
22 | MonthNext, | 22 | MonthNext, |
23 | Delete(String), | 23 | Delete(String), |
24 | Quit, | ||
24 | Blank, | 25 | Blank, |
25 | } | 26 | } |
26 | 27 | ||
@@ -53,6 +54,7 @@ impl Command { | |||
53 | } | 54 | } |
54 | "mprev" | "month-prev" => return Command::MonthPrev, | 55 | "mprev" | "month-prev" => return Command::MonthPrev, |
55 | "mnext" | "month-next" => return Command::MonthNext, | 56 | "mnext" | "month-next" => return Command::MonthNext, |
57 | "q" | "quit" => return Command::Quit, | ||
56 | _ => return Command::Blank, | 58 | _ => return Command::Blank, |
57 | } | 59 | } |
58 | } | 60 | } |