diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-09-13 00:20:42 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-09-13 00:20:42 +0530 |
commit | 330328d5ac6c633f117127b64b239631ca28277e (patch) | |
tree | 31be37cfcbc28cf15772c74e69f9bad959747890 /src/daemon/command.rs | |
parent | a85293cb7e755d5b81676088db205388488763a7 (diff) |
Added notificationsv0.2.0
Diffstat (limited to 'src/daemon/command.rs')
-rw-r--r-- | src/daemon/command.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon/command.rs b/src/daemon/command.rs index 18ee41d..4cbadd1 100644 --- a/src/daemon/command.rs +++ b/src/daemon/command.rs @@ -28,6 +28,7 @@ pub enum Command { SoftReset, HardReset, Reset, // conditional soft/hard reset + Notify, // toggle notifications on/off } pub fn start_command_listener(tx: Sender<Command>) -> thread::JoinHandle<()> { @@ -57,6 +58,7 @@ pub fn start_command_listener(tx: Sender<Command>) -> thread::JoinHandle<()> { "soft-reset" => Command::SoftReset, "hard-reset" => Command::HardReset, "reset" => Command::Reset, + "notify" => Command::Notify, &_ => Command::Run, // doesn't matter, pretty sure it won't ever hit this case }; |